diff options
author | Alon Zakai <azakai@mozilla.com> | 2011-02-19 15:45:17 -0800 |
---|---|---|
committer | Alon Zakai <azakai@mozilla.com> | 2011-02-19 15:45:17 -0800 |
commit | f81feaff967ffdd8212ffe2da8579c4734fc7cbb (patch) | |
tree | a92d47ad3cad7146c704745426ed661714682a89 /src/settings.js | |
parent | f4a934a2adec69bc82c42342c7924fdf259f64cc (diff) |
line-specific CORRECT_OVERFLOWS and CORRECT_SIGNS
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 4eb6b6a4..38e75baa 100644 --- a/src/settings.js +++ b/src/settings.js @@ -16,6 +16,8 @@ QUANTUM_SIZE = 4; // This is the size of an individual field in a structure. 1 w CORRECT_SIGNS = 1; // Whether we make sure to convert unsigned values to signed values. // 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 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 @@ -56,6 +58,9 @@ CORRECT_OVERFLOWS = 1; // Experimental code that tries to prevent unexpected JS // not rely on overflows in your C/C++ code, as even if this option works, // it slows things down. // + // If equal to 2, done on a line-by-line basis according to + // CORRECT_OVERFLOWS_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, // you may get a negative number, as JS & operations are signed. |