diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-11-28 15:48:48 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-11-28 15:48:48 -0800 |
commit | 30f27aa86bdfdc92645f949ace36eefd6053b6cb (patch) | |
tree | 4bdc3be404fc1a0e4ca38e9c68dcca1179f7c7d0 /src/compiler.js | |
parent | 6c3b08991b7a6ea5d30682dbd3af0d9e9b479811 (diff) |
memory debugging code, and some minor optimizations from it
Diffstat (limited to 'src/compiler.js')
-rw-r--r-- | src/compiler.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/compiler.js b/src/compiler.js index fd96386c..c6059f29 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -102,3 +102,10 @@ raw = null; JSify(analyzer(intertyper(lines))); +if (DEBUG_MEMORY) { + print('zzz. last gc: ' + gc()); + MemoryDebugger.dump(); + print('zzz. hanging now!'); + while(1){}; +} + |