aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-05-02 13:59:33 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-05-02 13:59:33 -0700
commit961554b0266c8f18a4889284668cea28217699aa (patch)
treeb083dcd2e60ef23bf1a31998665b515c4df40676
parent3c63f64dd20ccabcf846d3fa0c5e06fa1bf52cc9 (diff)
use full alignment in varargs
-rw-r--r--src/jsifier.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js
index 9207f65d..cdfc024e 100644
--- a/src/jsifier.js
+++ b/src/jsifier.js
@@ -1407,7 +1407,7 @@ function JSify(data, functionsOnly, givenFunctions) {
var ret;
assert(offset % Runtime.STACK_ALIGN == 0); // varargs must be aligned
if (!varargsByVals[i]) {
- ret = makeSetValue(getFastValue('tempInt', '+', offset), 0, arg, type, null, null, QUANTUM_SIZE, null, ',');
+ ret = makeSetValue(getFastValue('tempInt', '+', offset), 0, arg, type, null, null, Runtime.STACK_ALIGN, null, ',');
offset += Runtime.alignMemory(Runtime.getNativeFieldSize(type), Runtime.STACK_ALIGN);
} else {
var size = calcAllocatedSize(removeAllPointing(type));