[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:
parent
8f0b451fc2
commit
ec1e47a9a6
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user