aboutsummaryrefslogtreecommitdiff
path: root/src/runtime.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-11-25 15:39:08 -0800
committerAlon Zakai <azakai@mozilla.com>2010-11-25 15:39:08 -0800
commit66d539dbe657aef413d05cdd8e69ee9768a5cb37 (patch)
tree2b526ad02c7c603e3ecf5fdcb31a39c6126b5a69 /src/runtime.js
parentb5eea6060f32c1be666fd52ba8b337701f8723dc (diff)
improve lua test + fixes
Diffstat (limited to 'src/runtime.js')
-rw-r--r--src/runtime.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/runtime.js b/src/runtime.js
index 3b7ab23c..2e76af39 100644
--- a/src/runtime.js
+++ b/src/runtime.js
@@ -5,8 +5,10 @@
RuntimeGenerator = {
alloc: function(size, type) {
var ret = type + 'TOP';
- //ret += '; for (var i = 0; i < ' + size + '; i++) HEAP[' + type + 'TOP+i] = 0'; // No need for typed arrays - per the spec, initialized to 0 anyhow
if (GUARD_MEMORY) {
+ //if (!USE_TYPED_ARRAYS) { // No need for typed arrays - per the spec, initialized to 0 anyhow
+ // ret += '; for (var i = 0; i < ' + size + '; i++) HEAP[' + type + 'TOP+i] = 0';
+ //}
ret += '; assert(' + size + ' > 0)';
}
ret += '; ' + type + 'TOP += ' + size;