diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-02-17 17:49:19 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-02-17 17:49:19 +0100 |
commit | b3e9426b9775daf99210f337659a37876013d623 (patch) | |
tree | 0a3245a0e3b3c55c2097e0c9de56f953f17b3a7d /src/jsifier.js | |
parent | d9d2876b0b7370ff99c37483a5f6e97515499e81 (diff) |
memory corruption checker
Diffstat (limited to 'src/jsifier.js')
-rw-r--r-- | src/jsifier.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 9fbcf5a8..21d34b67 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1532,6 +1532,10 @@ function JSify(data, functionsOnly, givenFunctions) { // This is the main 'post' pass. Print out the generated code that we have here, together with the // rest of the output that we started to print out earlier (see comment on the // "Final shape that will be created"). + if (CORRUPTION_CHECK) { + assert(!ASM_JS); // cannot monkeypatch asm! + print(processMacros(read('corruptionCheck.js'))); + } if (PRECISE_I64_MATH && Types.preciseI64MathUsed) { print(read('long.js')); } else { |