diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-04-23 10:54:14 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-04-23 10:54:14 -0700 |
commit | 95e6abb17183a6c8fba778e5bdcca145c916309a (patch) | |
tree | 5b7705aeb230989769924a6a5259848864ad94fc /src | |
parent | 226602659376783e74be820f55cf1b1f2f4608fb (diff) |
memory fixes
Diffstat (limited to 'src')
-rw-r--r-- | src/preamble.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/preamble.js b/src/preamble.js index 5e3e2210..3b5eac3e 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -249,7 +249,7 @@ function __initializeRuntime__() { // TODO: Remove one of the 3 heaps! HAS_TYPED_ARRAYS = false; try { - HAS_TYPED_ARRAYS = !!Int32Array && !!Float64Array && !!(new Int32Array().subarray); // check for full engine support + HAS_TYPED_ARRAYS = !!Int32Array && !!Float64Array && !!(new Int32Array()['subarray']); // check for full engine support (use string 'subarray' to avoid closure compiler confusion) } catch(e) {} if (HAS_TYPED_ARRAYS) { @@ -262,7 +262,7 @@ function __initializeRuntime__() { var FAST_MEMORY = TOTAL_MEMORY/32; IHEAP = FHEAP = HEAP = new Array(FAST_MEMORY); for (var i = 0; i < FAST_MEMORY; i++) { - IHEAP[i] = FHEAP[i] = 0; // We do *not* use {{{ makeSetValue(0, 'i', 0, 'null') }}} here, since this is done just to optimize runtime speed + IHEAP[i] = 0; // We do *not* use {{{ makeSetValue(0, 'i', 0, 'null') }}} here, since this is done just to optimize runtime speed } } |