[mips64][liftoff] Change FillStackSlotsWithZero to use bytes

port 785fa6b https://crrev.com/c/1947350

Change-Id: I76e7d7b0afcea14bee7e11c8317ede5f4c880d1d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1951281
Auto-Submit: Zhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Reviewed-by: Zhi An Ng <zhin@chromium.org>
Reviewed-by: Deepti Gandluri <gdeepti@chromium.org>
Reviewed-by: Clemens Backes <clemensb@chromium.org>
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65359}
This commit is contained in:
Zhao Jiazhong 2019-12-05 02:12:10 -05:00 committed by Commit Bot
parent 35e9fd3e7b
commit 3158cf1a15

View File

@ -543,7 +543,7 @@ void LiftoffAssembler::FillStackSlotsWithZero(uint32_t start, uint32_t size) {
// General case for bigger counts (12 instructions). // General case for bigger counts (12 instructions).
// Use a0 for start address (inclusive), a1 for end address (exclusive). // Use a0 for start address (inclusive), a1 for end address (exclusive).
Push(a1, a0); Push(a1, a0);
Daddu(a0, fp, Operand(-liftoff::GetStackSlotOffset(start + end))); Daddu(a0, fp, Operand(-liftoff::GetStackSlotOffset(start + size)));
Daddu(a1, fp, Operand(-liftoff::GetStackSlotOffset(start))); Daddu(a1, fp, Operand(-liftoff::GetStackSlotOffset(start)));
Label loop; Label loop;