aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-11-28 15:48:48 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-11-28 15:48:48 -0800
commit30f27aa86bdfdc92645f949ace36eefd6053b6cb (patch)
tree4bdc3be404fc1a0e4ca38e9c68dcca1179f7c7d0 /src/compiler.js
parent6c3b08991b7a6ea5d30682dbd3af0d9e9b479811 (diff)
memory debugging code, and some minor optimizations from it
Diffstat (limited to 'src/compiler.js')
-rw-r--r--src/compiler.js7
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){};
+}
+