[loong64][mips] Fix a stack alignment issue when call C function

Change-Id: I297647ebc8b8b3f854ee3297be7c674aef6fd800
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3354668
Reviewed-by: Yu Liu <liuyu@loongson.cn>
Commit-Queue: Yu Liu <liuyu@loongson.cn>
Cr-Commit-Position: refs/heads/main@{#78437}
This commit is contained in:
Zhao Jiazhong 2021-12-23 19:42:26 +08:00 committed by V8 LUCI CQ
parent 8f0b451fc2
commit ec1e47a9a6
3 changed files with 3 additions and 0 deletions

View File

@ -3729,6 +3729,7 @@ void Generate_BaselineOrInterpreterEntry(MacroAssembler* masm,
__ Move(arg_reg_2, kInterpreterBytecodeOffsetRegister);
__ Move(arg_reg_3, kInterpreterBytecodeArrayRegister);
FrameScope scope(masm, StackFrame::INTERNAL);
__ PrepareCallCFunction(3, 0, a4);
__ CallCFunction(get_baseline_pc, 3, 0);
}
__ Add_d(code_obj, code_obj, kReturnRegister0);

View File

@ -4177,6 +4177,7 @@ void Generate_BaselineOrInterpreterEntry(MacroAssembler* masm,
__ Move(arg_reg_2, kInterpreterBytecodeOffsetRegister);
__ Move(arg_reg_3, kInterpreterBytecodeArrayRegister);
FrameScope scope(masm, StackFrame::INTERNAL);
__ PrepareCallCFunction(3, 0, t0);
__ CallCFunction(get_baseline_pc, 3, 0);
}
__ Addu(code_obj, code_obj, kReturnRegister0);

View File

@ -3754,6 +3754,7 @@ void Generate_BaselineOrInterpreterEntry(MacroAssembler* masm,
__ Move(arg_reg_2, kInterpreterBytecodeOffsetRegister);
__ Move(arg_reg_3, kInterpreterBytecodeArrayRegister);
FrameScope scope(masm, StackFrame::INTERNAL);
__ PrepareCallCFunction(3, 0, a4);
__ CallCFunction(get_baseline_pc, 3, 0);
}
__ Daddu(code_obj, code_obj, kReturnRegister0);