diff options
author | Alon Zakai <azakai@mozilla.com> | 2011-01-01 16:56:22 -0800 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2011-01-01 16:56:22 -0800 |
commit | 785e01b0d00125bbf9b1d32ecfd98af311f4e985 (patch) | |
tree | 13d8f13d47189d41778d65a593a96d8be42e2b1a /src/settings.js | |
parent | 0a2735ebc744bb877b20ff4b9669ab55b8e5100b (diff) |
CORRECT_OVERFLOWS option; strengthening of various tests, and fixes a bug in python with typed arrays
Diffstat (limited to 'src/settings.js')
-rw-r--r-- | src/settings.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js index 79b4e6fa..0bc6c88d 100644 --- a/src/settings.js +++ b/src/settings.js @@ -43,6 +43,11 @@ CHECK_OVERFLOWS = 0; // Add code that checks for overflows in integer math opera // some factor, in order to get 'random' hash values - by taking // that |value & hash_table_size| - then multiplying enough times will overflow. // But instead, you can do |value = value & 30_BITS| in each iteration. +CORRECT_OVERFLOWS = 1; // Experimental code that tries to prevent unexpected JS overflows in integer + // mathops, by doing controlled overflows (sort of parallel to a CPU). + // Note that as mentioned above in CHECK_OVERFLOWS, the best thing is to + // not rely on overflows in your C/C++ code, as even if this option works, + // it slows things down. // Compiler debugging options DEBUG_TAGS_SHOWING = []; |