mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1014083: Align local slot count with StackAlignment; r=sunfish
This commit is contained in:
parent
cb2a19931b
commit
129544d38c
@ -1554,7 +1554,7 @@ class LIRGraph
|
|||||||
// Round to StackAlignment, but also round to at least sizeof(Value) in
|
// Round to StackAlignment, but also round to at least sizeof(Value) in
|
||||||
// case that's greater, because StackOffsetOfPassedArg rounds argument
|
// case that's greater, because StackOffsetOfPassedArg rounds argument
|
||||||
// slots to 8-byte boundaries.
|
// 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);
|
return AlignBytes(localSlotCount(), Alignment);
|
||||||
}
|
}
|
||||||
size_t paddedLocalSlotsSize() const {
|
size_t paddedLocalSlotsSize() const {
|
||||||
|
Loading…
Reference in New Issue
Block a user