aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-04 15:46:21 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-04 15:46:21 -0700
commit538b6b0bcc12c58d841fd11130a9b16cfaf3d81e (patch)
tree48e67ee37ff4fbb72d7151ed88f6e9ba0df31371
parent93aa89e9e9d8ffe93393bb19e61cf98b5ec298db (diff)
fix s_x_x
-rw-r--r--src/parseTools.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 6c6a04d4..95dc46e0 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -1539,10 +1539,9 @@ function makePointer(slab, pos, allocator, type, ptr, finalMemoryInitialization)
}
types = 'i8';
}
- if (allocator == 'ALLOC_NONE') {
+ if (allocator == 'ALLOC_NONE' && USE_TYPED_ARRAYS == 2) {
if (!finalMemoryInitialization) {
// writing out into memory, without a normal allocation. We put all of these into a single big chunk.
- assert(USE_TYPED_ARRAYS == 2);
assert(typeof slab == 'object');
assert(slab.length % QUANTUM_SIZE == 0, slab.length); // must be aligned already
var offset = ptr - TOTAL_STACK; // we assert on GLOBAL_BASE being equal to TOTAL_STACK