aboutsummaryrefslogtreecommitdiff
path: root/src/jsifier.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-04-22 10:52:52 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-04-29 13:01:59 -0700
commitef67463a0d300d6bb5899632fc96e18726351613 (patch)
tree69933a81f19e6128b6e03611e443030fa9ba731a /src/jsifier.js
parentb020ec673028c47fa16e32f46a7c3e5c1dbe3905 (diff)
align the stack to 64 bits in le32
Diffstat (limited to 'src/jsifier.js')
-rw-r--r--src/jsifier.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index acb0332b..2715ae3e 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1403,11 +1403,10 @@ function JSify(data, functionsOnly, givenFunctions) {
ret = makeSetValue(getFastValue('tempInt', '+', offset), 0, arg, type, null, null, QUANTUM_SIZE, null, ',');
offset += Runtime.getNativeFieldSize(type);
} else {
- assert(offset % 4 == 0); // varargs must be aligned
+ assert(offset % Runtime.STACK_ALIGN == 0); // varargs must be aligned
var size = calcAllocatedSize(removeAllPointing(type));
- assert(size % 4 == 0); // varargs must stay aligned
ret = makeCopyValues(getFastValue('tempInt', '+', offset), arg, size, null, null, varargsByVals[i], ',');
- offset += size;
+ offset += Runtime.forceAlign(size, Runtime.STACK_ALIGN);
}
return ret;
}).filter(function(arg) {