Commit 35e6a110 authored by Lu Yahan's avatar Lu Yahan Committed by V8 LUCI CQ

[riscv64] add a7 into wasm-linkage

and delete extra asm_comment

Change-Id: Ia22f4bc622387e7c9a1c830b9f213d9554f0029e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3507121Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Auto-Submit: Yahan Lu <yahan@iscas.ac.cn>
Commit-Queue: Yahan Lu <yahan@iscas.ac.cn>
Cr-Commit-Position: refs/heads/main@{#79401}
parent 9f0c84b3
......@@ -2772,6 +2772,9 @@ void Builtins::Generate_WasmCompileLazy(MacroAssembler* masm) {
}
// Also push a1, because we must push multiples of 16 bytes (see
// {TurboAssembler::PushCPURegList}.
CHECK_EQ(1, NumRegs(gp_regs) % 2);
gp_regs |= a1.bit();
// Ensure that A1 will not be repeated.
CHECK_EQ(0, NumRegs(gp_regs) % 2);
RegList fp_regs = 0;
......@@ -2779,7 +2782,7 @@ void Builtins::Generate_WasmCompileLazy(MacroAssembler* masm) {
fp_regs |= fp_param_reg.bit();
}
CHECK_EQ(NumRegs(gp_regs), arraysize(wasm::kGpParamRegisters));
CHECK_EQ(NumRegs(gp_regs), arraysize(wasm::kGpParamRegisters) + 1);
CHECK_EQ(NumRegs(fp_regs), arraysize(wasm::kFpParamRegisters));
CHECK_EQ(WasmCompileLazyFrameConstants::kNumberOfSavedGpParamRegs,
NumRegs(gp_regs));
......
......@@ -4675,7 +4675,6 @@ void MacroAssembler::AssertFunction(Register object) {
void MacroAssembler::AssertCallableFunction(Register object) {
if (!FLAG_debug_code) return;
ASM_CODE_COMMENT(this);
ASM_CODE_COMMENT(this);
STATIC_ASSERT(kSmiTag == 0);
AssertNotSmi(object, AbortReason::kOperandIsASmiAndNotAFunction);
push(object);
......
......@@ -24,7 +24,7 @@ class EntryFrameConstants : public AllStatic {
class WasmCompileLazyFrameConstants : public TypedFrameConstants {
public:
static constexpr int kNumberOfSavedGpParamRegs =
arraysize(wasm::kGpParamRegisters);
arraysize(wasm::kGpParamRegisters) + 1;
static constexpr int kNumberOfSavedFpParamRegs =
arraysize(wasm::kFpParamRegisters);
static constexpr int kNumberOfSavedAllParamRegs =
......
......@@ -122,7 +122,7 @@ constexpr DoubleRegister kFpReturnRegisters[] = {d0, d2};
// ===========================================================================
// Note that kGpParamRegisters and kFpParamRegisters are used in
// Builtins::Generate_WasmCompileLazy (builtins-riscv64.cc)
constexpr Register kGpParamRegisters[] = {a0, a2, a3, a4, a5, a6};
constexpr Register kGpParamRegisters[] = {a0, a2, a3, a4, a5, a6, a7};
constexpr Register kGpReturnRegisters[] = {a0, a1};
constexpr DoubleRegister kFpParamRegisters[] = {fa0, fa1, fa2, fa3,
fa4, fa5, fa6};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment