aboutsummaryrefslogtreecommitdiff
path: root/src/settings.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-01-17 18:38:25 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-01-17 18:38:25 -0800
commit2913e6efd9acd4180847ed1f3ed84d450e8719de (patch)
tree9cbd74e4331eb5ca1c7787ecd31da247219ecdbb /src/settings.js
parent33b7ca2795983813467d796edb8dd9d380a288bd (diff)
parent4899a836579f064a0aa0df3b56fa15b3d4e04012 (diff)
Merge pull request #778 from caiiiycuk/exception_catching_in_scope
Implement exceptions in scopes
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 8ae287f9..ccf2a25b 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -158,8 +158,16 @@ var DISABLE_EXCEPTION_CATCHING = 0; // Disables generating code to actually catc
// 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).
+ // DISABLE_EXCEPTION_CATCHING = 0 - generate code to actually catch exceptions
+ // DISABLE_EXCEPTION_CATCHING = 1 - disable exception catching at all
+ // DISABLE_EXCEPTION_CATCHING = 2 - disable exception catching, but enables
+ // catching in whitelist
// TODO: Make this also remove cxa_begin_catch etc., optimize relooper
// for it, etc. (perhaps do all of this as preprocessing on .ll?)
+
+var EXCEPTION_CATCHING_WHITELIST = []; // Enables catching exception in listed functions if
+ // DISABLE_EXCEPTION_CATCHING = 2 set
+
var EXECUTION_TIMEOUT = -1; // Throw an exception after X seconds - useful to debug infinite loops
var 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.