aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-01-07 12:24:40 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-01-07 12:24:40 -0800
commit582e3e62db1bf888f6c60881694c05cf37a3b55f (patch)
tree6aee323614f8a978ce9700a326e99dcaa154dbfc /src
parent04b5c9d3d434e1bf6ab0dab42fd27fd4a4dd0721 (diff)
make aggressiveVariableElimination usable through a setting
Diffstat (limited to 'src')
-rw-r--r--src/settings.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js
index 753e2367..04b2cc79 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -156,6 +156,8 @@ var OUTLINING_LIMIT = 0; // A function size above which we try to automatically
// with, but something around 20,000 to 100,000 might make sense.
// (The unit size is number of AST nodes.)
+var AGGRESSIVE_VARIABLE_ELIMINATION = 0; // Run aggressiveVariableElimination in js-optimizer.js
+
// Generated code debugging options
var SAFE_HEAP = 0; // Check each write to the heap, for example, this will give a clear
// error on what would be segfaults in a native build (like deferencing