Commit 0541b2ee authored by danno's avatar danno Committed by Commit bot

[turbofan] Use macros for sp manipulation during tail call on arm64

BUG=v8:4076
LOG=n

Review URL: https://codereview.chromium.org/1483053002

Cr-Commit-Position: refs/heads/master@{#32415}
parent 28a3f23e
......@@ -462,7 +462,7 @@ Condition FlagsConditionToCondition(FlagsCondition condition) {
void CodeGenerator::AssembleDeconstructActivationRecord(int stack_param_delta) {
int sp_slot_delta = TailCallFrameStackSlotDelta(stack_param_delta);
if (sp_slot_delta > 0) {
__ Add(jssp, jssp, Operand(sp_slot_delta * kPointerSize));
__ Drop(sp_slot_delta);
}
frame_access_state()->SetFrameAccessToDefault();
}
......@@ -471,7 +471,7 @@ void CodeGenerator::AssembleDeconstructActivationRecord(int stack_param_delta) {
void CodeGenerator::AssemblePrepareTailCall(int stack_param_delta) {
int sp_slot_delta = TailCallFrameStackSlotDelta(stack_param_delta);
if (sp_slot_delta < 0) {
__ Sub(jssp, jssp, Operand(-sp_slot_delta * kPointerSize));
__ Claim(-sp_slot_delta);
frame_access_state()->IncreaseSPDelta(-sp_slot_delta);
}
if (frame()->needs_frame()) {
......
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