diff options
author | Vladimir Vukicevic <vladimirv@dugeo.com> | 2013-02-26 23:04:11 -0500 |
---|---|---|
committer | Vladimir Vukicevic <vladimirv@dugeo.com> | 2013-02-26 23:04:11 -0500 |
commit | 31186ef9edb06e9bc695fca2c3a14677e8f137a1 (patch) | |
tree | cba5aba62602283b6d6a9d3e23f126dd6feb1482 /src/compiler.js | |
parent | a28b5d53d75b428b1bee1efd39ac6d01d68d56d2 (diff) |
Add CHECK_HEAP_ALIGN to perform runtime alignment checks
Adds a much cheaper CHECK_HEAP_ALIGN option to do heap access
alignment checks. Less extensive than SAFE_HEAP, but also much
cheaper.
Diffstat (limited to 'src/compiler.js')
-rw-r--r-- | src/compiler.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler.js b/src/compiler.js index 0b43842e..14816f1e 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -185,7 +185,7 @@ if (phase == 'pre') { print('// Note: For maximum-speed code, see "Optimizing Code" on the Emscripten wiki, https://github.com/kripken/emscripten/wiki/Optimizing-Code'); } - if (DOUBLE_MODE || CORRECT_SIGNS || CORRECT_OVERFLOWS || CORRECT_ROUNDINGS) { + if (DOUBLE_MODE || CORRECT_SIGNS || CORRECT_OVERFLOWS || CORRECT_ROUNDINGS || CHECK_HEAP_ALIGN) { print('// Note: Some Emscripten settings may limit the speed of the generated code.'); } } |