From 9c637288cf3b1c7505fa7d8edc1536b6e64d5967 Mon Sep 17 00:00:00 2001 From: Thomas Lively <7121787+tlively@users.noreply.github.com> Date: Fri, 17 May 2019 12:56:53 -0700 Subject: Features C/JS API (#2049) Add feature handling to the C/JS APIs. No features are enabled by default, so all used features will have to be explicitly enabled in order for modules to validate. --- build-js.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'build-js.sh') diff --git a/build-js.sh b/build-js.sh index 7d9f51b5d..8317bce4a 100755 --- a/build-js.sh +++ b/build-js.sh @@ -230,6 +230,15 @@ export_function "_BinaryenExternalTable" export_function "_BinaryenExternalMemory" export_function "_BinaryenExternalGlobal" +# Features +export_function "_BinaryenFeatureAtomics" +export_function "_BinaryenFeatureBulkMemory" +export_function "_BinaryenFeatureMutableGlobals" +export_function "_BinaryenFeatureNontrappingFPToInt" +export_function "_BinaryenFeatureSignExt" +export_function "_BinaryenFeatureSIMD128" +export_function "_BinaryenFeatureExceptionHandling" + # Literals export_function "_BinaryenLiteralInt32" export_function "_BinaryenLiteralInt64" @@ -758,6 +767,8 @@ export_function "_BinaryenRemoveExport" export_function "_BinaryenSetFunctionTable" export_function "_BinaryenSetMemory" export_function "_BinaryenSetStart" +export_function "_BinaryenGetFeatures" +export_function "_BinaryenSetFeatures" export_function "_BinaryenModuleParse" export_function "_BinaryenModulePrint" export_function "_BinaryenModulePrintAsmjs" -- cgit v1.2.3