diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-05-25 15:00:11 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-05-25 15:00:11 -0700 |
commit | d3efb7dcb71f0d9d6df09fee687fa1dbd0bde9bf (patch) | |
tree | 19be204e6a786b13d7a1136302e457deca36404e /src/settings.js | |
parent | e1b8b28863ee7fea3117d0d10d7ab0a679dfb8ca (diff) |
allow 2 and 3 in SAFE_HEAP and CHECK_* options. 2 is only these, 3 is all but these
Diffstat (limited to 'src/settings.js')
-rw-r--r-- | src/settings.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/settings.js b/src/settings.js index 249c8224..b50ac04d 100644 --- a/src/settings.js +++ b/src/settings.js @@ -17,7 +17,8 @@ CORRECT_SIGNS = 1; // Whether we make sure to convert unsigned values to signed // Decreases performance with additional runtime checks. Might not be // needed in some kinds of code. // If equal to 2, done on a line-by-line basis according to - // CORRECT_SIGNS_LINES + // CORRECT_SIGNS_LINES, correcting only the specified lines. + // If equal to 3, correcting all *but* the specified lines CHECK_SIGNS = 0; // Runtime errors for signing issues that need correcting. // It is recommended to use this in // order to find if your code needs CORRECT_SIGNS. If you can get your @@ -47,8 +48,9 @@ SKIP_STACK_IN_SMALL = 1; // When enabled, does not push/pop the stack at all in // Generated code debugging options SAFE_HEAP = 0; // Check each write to the heap against a list of blocked addresses // If equal to 2, done on a line-by-line basis according to - // SAFE_HEAP_LINES (note that these are the lines to *exclude* - // from checking - the opposite of what CORRECT_*_LINES mean) + // SAFE_HEAP_LINES, checking only the specified lines. + // If equal to 3, checking all *but* the specified lines. Note + // that 3 is the option you usually want here. SAFE_HEAP_LOG = 0; // Print out every single heap read and write (LOTS of output) LABEL_DEBUG = 0; // Print out labels and functions as we enter them EXCEPTION_DEBUG = 1; // Print out exceptions in emscriptened code @@ -71,7 +73,8 @@ CORRECT_OVERFLOWS = 1; // Experimental code that tries to prevent unexpected JS // it slows things down. // // If equal to 2, done on a line-by-line basis according to - // CORRECT_OVERFLOWS_LINES + // CORRECT_OVERFLOWS_LINES, correcting only the specified lines. + // If equal to 3, correcting all *but* the specified lines // // NOTE: You can introduce signing issues by using this option. If you // take a large enough 32-bit value, and correct it for overflows, |