blob: bc716bf9166d963c0576c9fcb2092b90d20a512a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
console.log("// alwaysInlineMaxSize=" + binaryen.getAlwaysInlineMaxSize());
binaryen.setAlwaysInlineMaxSize(11);
assert(binaryen.getAlwaysInlineMaxSize() == 11);
console.log("// flexibleInlineMaxSize=" + binaryen.getFlexibleInlineMaxSize());
binaryen.setFlexibleInlineMaxSize(22);
assert(binaryen.getFlexibleInlineMaxSize() == 22);
console.log("// oneCallerInlineMaxSize=" + binaryen.getOneCallerInlineMaxSize());
binaryen.setOneCallerInlineMaxSize(33);
assert(binaryen.getOneCallerInlineMaxSize() == 33);
console.log("// allowInliningFunctionsWithLoops=" + binaryen.getAllowInliningFunctionsWithLoops());
binaryen.setAllowInliningFunctionsWithLoops(true);
assert(binaryen.getAllowInliningFunctionsWithLoops() == true);
|