Merge pull request #401 from dicej/master

align stack size for vmNativeCall to 16 on ARM
This commit is contained in:
Joshua Warner 2015-01-21 14:51:32 -07:00
commit 5def0e4658

View File

@ -311,7 +311,7 @@ inline uint64_t dynamicCall(void* function,
vfpIndex = VfpCount; vfpIndex = VfpCount;
} }
unsigned stackSize = stackIndex * BytesPerWord + ((stackIndex & 1) << 2); unsigned stackSize = pad(stackIndex * BytesPerWord, 16);
return vmNativeCall(function, return vmNativeCall(function,
stackSize, stackSize,
RUNTIME_ARRAY_BODY(stack), RUNTIME_ARRAY_BODY(stack),