Commit a1e72ab0 authored by Lu Yahan's avatar Lu Yahan Committed by Commit Bot

[riscv64][sparkplug]Port Use EnterFrame/LeaveFrame with StackFrame::BASELINE

Change-Id: I7cf47d9be50790f453bd2908b58aff3a41e2f95b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2848735Reviewed-by: 's avatarBrice Dobry <brice.dobry@futurewei.com>
Commit-Queue: Yahan Lu <yahan@iscas.ac.cn>
Cr-Commit-Position: refs/heads/master@{#74195}
parent 41272e0b
......@@ -597,7 +597,7 @@ void BaselineAssembler::EmitReturn(MacroAssembler* masm) {
__ Bind(&corrected_args_count);
// Leave the frame (also dropping the register file).
__ masm()->LeaveFrame(StackFrame::MANUAL);
__ masm()->LeaveFrame(StackFrame::BASELINE);
// Drop receiver + arguments.
__ masm()->Add64(params_size, params_size, 1); // Include the receiver.
......
......@@ -979,7 +979,7 @@ static void LoadOptimizationStateAndJumpIfNeedsProcessing(
__ RecordComment("[ Check optimization state");
UseScratchRegisterScope temps(masm);
Register scratch = temps.Acquire();
__ Ld(optimization_state,
__ Lw(optimization_state,
FieldMemOperand(feedback_vector, FeedbackVector::kFlagsOffset));
__ And(
scratch, optimization_state,
......
......@@ -3979,7 +3979,7 @@ void TurboAssembler::EnterFrame(StackFrame::Type type) {
BlockTrampolinePoolScope block_trampoline_pool(this);
Push(ra, fp);
Move(fp, sp);
if (type != StackFrame::MANUAL) {
if (!StackFrame::IsJavaScript(type)) {
li(scratch, Operand(StackFrame::TypeToMarker(type)));
Push(scratch);
}
......
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