aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-11-27 21:09:32 -0800
committerAlon Zakai <azakai@mozilla.com>2010-11-27 21:09:32 -0800
commit6fbe4e7bc8a8ca7f601cae1fe43851dcb8728125 (patch)
tree542184fa3f55e3bfb94454cacee3f5f025f1957e
parent0ba7a0a624f2d264996ea98fc492df453c9e2e73 (diff)
comment
-rw-r--r--src/runtime.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime.js b/src/runtime.js
index cb79b68d..3b5b22d8 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -9,7 +9,7 @@ RuntimeGenerator = {
ret += '; assert(' + size + ' > 0)';
}
var initMemory = 'for (var i = 0; i < ' + size + '; i++) HEAP[' + type + 'TOP+i] = 0';
- if (USE_TYPED_ARRAYS) { // No need for typed arrays - per the spec, initialized to 0 anyhow
+ if (USE_TYPED_ARRAYS) { // No need for typed arrays - per the spec, initialized to 0 anyhow XXX - but reusing memory, don't we need that?
initMemory = 'if (!HAS_TYPED_ARRAYS) { ' + initMemory + '}';
}
ret += '; ' + initMemory;
@@ -39,7 +39,7 @@ RuntimeGenerator = {
ret += '; assert(STACKTOP < STACK_MAX)';
}
var initMemory = 'for (var i = __stackBase__; i < STACKTOP; i++) HEAP[i] = 0';
- if (USE_TYPED_ARRAYS) { // No need for typed arrays - per the spec, initialized to 0 anyhow
+ if (USE_TYPED_ARRAYS) { // No need for typed arrays - per the spec, initialized to 0 anyhow XXX - but reusing memory, don't we need that?
initMemory = 'if (!HAS_TYPED_ARRAYS) { ' + initMemory + '}';
}
ret += '; ' + initMemory;