From 3158cf1a158223b826297cef6bc3ce00fd8d0422 Mon Sep 17 00:00:00 2001 From: Zhao Jiazhong Date: Thu, 5 Dec 2019 02:12:10 -0500 Subject: [PATCH] [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 Reviewed-by: Zhi An Ng Reviewed-by: Deepti Gandluri Reviewed-by: Clemens Backes Commit-Queue: Clemens Backes Cr-Commit-Position: refs/heads/master@{#65359} --- src/wasm/baseline/mips64/liftoff-assembler-mips64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wasm/baseline/mips64/liftoff-assembler-mips64.h b/src/wasm/baseline/mips64/liftoff-assembler-mips64.h index 91f1093bbe..3e06f2aeb4 100644 --- a/src/wasm/baseline/mips64/liftoff-assembler-mips64.h +++ b/src/wasm/baseline/mips64/liftoff-assembler-mips64.h @@ -543,7 +543,7 @@ void LiftoffAssembler::FillStackSlotsWithZero(uint32_t start, uint32_t size) { // General case for bigger counts (12 instructions). // Use a0 for start address (inclusive), a1 for end address (exclusive). 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))); Label loop;