aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-10 19:46:13 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-10 19:46:13 -0800
commit08811c6b113f473777567228cc71175b361058f6 (patch)
tree8541a153cbae0a537df703d2bbba2b5152a6b582
parentf59ffc338e2c1df792709a823be1c1d2735e88bf (diff)
clear warning to stderr when enlarging memory arrays
-rw-r--r--src/preamble.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js
index a6556095..1e9e1f11 100644
--- a/src/preamble.js
+++ b/src/preamble.js
@@ -537,6 +537,7 @@ var LAST_STATICTOP;
function enlargeMemory() {
// LAST_STATICTOP is the previous top, TOTAL_MEMORY is the current size of the actual array, and STATICTOP is the new top.
#if ASSERTIONS
+ printErr('Warning: Enlarging memory arrays, this is not fast! ' + [STATICTOP, TOTAL_MEMORY]);
assert(STATICTOP >= TOTAL_MEMORY && LAST_STATICTOP < TOTAL_MEMORY);
assert(TOTAL_MEMORY > 4); // So the loop below will not be infinite
#endif