diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-16 14:32:17 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-16 14:32:17 -0800 |
commit | f935efc021ad86144c173c87ea5000b2aace0a6d (patch) | |
tree | c06380792fb7b029ddfbfdcbf745d49ef6941a62 /src/jsifier.js | |
parent | 3ec94c4eca1c859701d30f44abf588f023b6e395 (diff) |
tell closure compiler not to inline very large functions. use closure in all benchmarks
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 5f75b374..8d9e65c6 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -553,6 +553,10 @@ function JSify(data, functionsOnly, givenFunctions, givenGlobalVariables) { func.JS += 'Module["' + func.ident + '"] = ' + func.ident + ';'; } + if (func.lines.length >= CLOSURE_INLINE_PREVENTION_LINES) { + func.JS += func.ident + '["X"]=1;'; + } + return func; } }); |