aboutsummaryrefslogtreecommitdiff
path: root/src/settings.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2011-01-11 22:50:31 -0800
committerAlon Zakai <azakai@mozilla.com>2011-01-11 22:50:31 -0800
commit907ab2c11fe3c98e2c261812a414bce9558c2fab (patch)
tree3106d5e8e2548827e3ea2c4fd4c4ce78f7b06943 /src/settings.js
parentec37de602c56c039426b6374afb2ec90fb50b0ef (diff)
make memory initialization optional, and default to initializing the stack only
Diffstat (limited to 'src/settings.js')
-rw-r--r--src/settings.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js
index 0bc6c88d..829d4517 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -23,6 +23,8 @@ GUARD_MEMORY = 1; // Whether we should check that each allocation to the stack d
// of positive size, etc.
INVOKE_RUN = 1; // Whether we will call run(). Disable if you embed the generated
// code in your own, and will call run() yourself at the right time
+INIT_STACK = 1; // Whether to initialize memory on the stack to 0.
+INIT_HEAP = 0; // Whether to initialize memory anywhere other than the stack to 0.
// Code embetterments
OPTIMIZE = 0; // Optimize llvm operations into js commands