summaryrefslogtreecommitdiff
path: root/test/binaryen.js/inlining-options.js.txt
diff options
context:
space:
mode:
Diffstat (limited to 'test/binaryen.js/inlining-options.js.txt')
-rw-r--r--test/binaryen.js/inlining-options.js.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/binaryen.js/inlining-options.js.txt b/test/binaryen.js/inlining-options.js.txt
new file mode 100644
index 000000000..4993fd0d6
--- /dev/null
+++ b/test/binaryen.js/inlining-options.js.txt
@@ -0,0 +1,28 @@
+// beginning a Binaryen API trace
+#include <math.h>
+#include <map>
+#include "binaryen-c.h"
+int main() {
+ std::map<size_t, BinaryenExpressionRef> expressions;
+ std::map<size_t, BinaryenFunctionRef> functions;
+ std::map<size_t, BinaryenGlobalRef> globals;
+ std::map<size_t, BinaryenEventRef> events;
+ std::map<size_t, BinaryenExportRef> exports;
+ std::map<size_t, RelooperBlockRef> relooperBlocks;
+ BinaryenModuleRef the_module = NULL;
+ RelooperRef the_relooper = NULL;
+ BinaryenGetAlwaysInlineMaxSize();
+// alwaysInlineMaxSize=2
+ BinaryenSetAlwaysInlineMaxSize(11);
+ BinaryenGetAlwaysInlineMaxSize();
+ BinaryenGetFlexibleInlineMaxSize();
+// flexibleInlineMaxSize=20
+ BinaryenSetFlexibleInlineMaxSize(22);
+ BinaryenGetFlexibleInlineMaxSize();
+ BinaryenGetOneCallerInlineMaxSize();
+// oneCallerInlineMaxSize=15
+ BinaryenSetOneCallerInlineMaxSize(33);
+ BinaryenGetOneCallerInlineMaxSize();
+ return 0;
+}
+// ending a Binaryen API trace