summaryrefslogtreecommitdiff
path: root/src/settings.js
diff options
context:
space:
mode:
authormax99x <max99x@gmail.com>2011-08-17 07:44:59 +0300
committermax99x <max99x@gmail.com>2011-08-17 07:44:59 +0300
commit25630c272ddd8d260f4bd8d60db5f2b01b6a00e8 (patch)
tree8708398c75748234299abae35dbdb3f8a095a5c6 /src/settings.js
parentee4b6ebf353585fb0eb0809a4b677f5694a9ba79 (diff)
parentc2d71f807a84cb1cfad154c59e9d6859fff3e631 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'src/settings.js')
-rw-r--r--src/settings.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js
index 226c30b2..ed3437b1 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -63,6 +63,14 @@ SAFE_HEAP_LOG = 0; // Log out all SAFE_HEAP operations
LABEL_DEBUG = 0; // Print out labels and functions as we enter them
EXCEPTION_DEBUG = 1; // Print out exceptions in emscriptened code
+DISABLE_EXCEPTIONS = 0; // Disables generating code to actually catch exceptions. If the code you
+ // are compiling does not actually rely on catching exceptions (but the
+ // compiler generates code for it, maybe because of stdlibc++ stuff),
+ // then this can make it much faster. If an exception actually happens,
+ // it will not be caught and the program will halt (so this will not
+ // introduce silent failures, which is good).
+ // TODO: Make this also remove cxa_begin_catch etc., optimize relooper
+ // for it, etc. (perhaps do all of this as preprocessing on .ll?)
EXECUTION_TIMEOUT = -1; // Throw an exception after X seconds - useful to debug infinite loops
CHECK_OVERFLOWS = 0; // Add code that checks for overflows in integer math operations.
// There is currently not much to do to handle overflows if they occur.