aboutsummaryrefslogtreecommitdiff
path: root/src/settings.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-10-08 21:54:49 -0700
committeralon@honor <none@none>2010-10-08 21:54:49 -0700
commit597a3dc5c2c02aca72df52e6e06002b510b7453a (patch)
treed8fe08a393dfecbb139f372441f942ee230a5a10 /src/settings.js
parent7ae56ec8ee8e7c1166afaa7c7305fd73996c483f (diff)
fix bug with last commit, and better GUARD_MEMORY option
Diffstat (limited to 'src/settings.js')
-rw-r--r--src/settings.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/settings.js b/src/settings.js
index 660671fd..d79869f1 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -18,8 +18,9 @@ GUARD_SIGNS = 1; // Whether we make sure to convert unsigned values to signed va
// needed in some kinds of code.
GUARD_LABELS = 0; // Whether we should throw if we encounter a bad __label__, i.e.,
// if code flow runs into a fault
-GUARD_STACK = 1; // Whether we should check that each allocation to the stack does not
- // exceed it's size
+GUARD_MEMORY = 1; // Whether we should check that each allocation to the stack does not
+ // exceed it's size, whether all allocations (stack and static) are
+ // of positive size, etc.
// Code embetterments
OPTIMIZE = 0; // Optimize llvm operations into js commands