PPC/s390: [liftoff] Change FillStackSlotsWithZero to use bytes

Port 785fa6b412

R=zhin@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=
LOG=N

Change-Id: I34f98cef7b78c694ba909e02d8c7bb251c7b5301
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1949153
Reviewed-by: Junliang Yan <jyan@ca.ibm.com>
Commit-Queue: Milad Farazmand <miladfar@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#65336}
This commit is contained in:
Milad Farazmand 2019-12-04 17:33:09 +00:00 committed by Commit Bot
parent 1590dfa22f
commit e658bda8d3

View File

@ -171,7 +171,7 @@ void LiftoffAssembler::FillStackSlotsWithZero(uint32_t start, uint32_t size) {
// Use r3 for start address (inclusive), r4 for end address (exclusive).
push(r3);
push(r4);
SubP(r3, fp, Operand(liftoff::GetStackSlotOffset(start + remainder)));
SubP(r3, fp, Operand(liftoff::GetStackSlotOffset(start + size)));
SubP(r4, fp, Operand(liftoff::GetStackSlotOffset(start)));
Label loop;