align stack size for vmNativeCall to 16 on ARM

The ARM64 ABI(s) require this, and it doesn't hurt to do it on 32-bit
ARM as well.
This commit is contained in:
Joel Dice 2015-01-21 14:08:23 -07:00
parent bd22daccff
commit bbd4c58f91

View File

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