aboutsummaryrefslogtreecommitdiff
path: root/src/settings.js
diff options
context:
space:
mode:
authoralon@honor <none@none>2010-09-21 20:38:37 -0700
committeralon@honor <none@none>2010-09-21 20:38:37 -0700
commit427206373413805fef3c56915fa6e1ac9dd93627 (patch)
tree1c19679707ba330607b19806c60b099cd412fdbc /src/settings.js
parentab582256db454b3ccab074058941311845746f8b (diff)
fix some relooper bugs, and EXECUTION_TIMEOUT setting for debugging such problems
Diffstat (limited to 'src/settings.js')
-rw-r--r--src/settings.js15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/settings.js b/src/settings.js
index 32db3739..302f04b2 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -1,7 +1,12 @@
-OPTIMIZE = 1;
-RELOOP = 0;
-SAFE_HEAP = 0;
-LABEL_DEBUG = 0;
+// Code embetterments
+OPTIMIZE = 1; // Optimize llvm operations into js commands
+RELOOP = 1; // Recreate js native loops from llvm data
-DEBUG_TAGS_SHOWING = ['labelbranching', 'enzymatic'];
+// Generated code debugging options
+SAFE_HEAP = 0; // Check each write to the heap against a list of blocked addresses
+LABEL_DEBUG = 0; // Print out labels and functions as we enter them
+EXECUTION_TIMEOUT = -1; // Throw an exception after X seconds - useful to debug infinite loops
+
+// Compiler debugging options
+DEBUG_TAGS_SHOWING = ['enzymatic'];