Bug 1014083: Align local slot count with StackAlignment; r=sunfish

This commit is contained in:
Benjamin Bouvier 2014-05-28 19:30:57 +02:00
parent cb2a19931b
commit 129544d38c

View File

@ -1554,7 +1554,7 @@ class LIRGraph
// Round to StackAlignment, but also round to at least sizeof(Value) in
// case that's greater, because StackOffsetOfPassedArg rounds argument
// slots to 8-byte boundaries.
size_t Alignment = Max(sizeof(StackAlignment), sizeof(Value));
size_t Alignment = Max(size_t(StackAlignment), sizeof(Value));
return AlignBytes(localSlotCount(), Alignment);
}
size_t paddedLocalSlotsSize() const {