Commit cc91a102 authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[cleanup] Remove dead Enter/LeaveBuiltinFrame methods.

R=jgruber@chromium.org

Change-Id: Ic9ef3cd231c2180563c3520ab58895f2ccce5408
Reviewed-on: https://chromium-review.googlesource.com/c/1307421Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57123}
parent b98ca114
......@@ -808,23 +808,6 @@ void TurboAssembler::AllocateStackFrame(Register bytes_scratch) {
}
#endif
void MacroAssembler::EnterBuiltinFrame(Register context, Register target,
Register argc) {
Push(ebp);
Move(ebp, esp);
Push(context);
Push(target);
Push(argc);
}
void MacroAssembler::LeaveBuiltinFrame(Register context, Register target,
Register argc) {
Pop(argc);
Pop(target);
Pop(context);
leave();
}
void MacroAssembler::EnterExitFramePrologue(StackFrame::Type frame_type,
Register scratch) {
DCHECK(frame_type == StackFrame::EXIT ||
......
......@@ -726,9 +726,6 @@ class MacroAssembler : public TurboAssembler {
return SafepointRegisterStackIndex(reg.code());
}
void EnterBuiltinFrame(Register context, Register target, Register argc);
void LeaveBuiltinFrame(Register context, Register target, Register argc);
private:
// Helper functions for generating invokes.
void InvokePrologue(const ParameterCount& expected,
......
......@@ -4776,19 +4776,6 @@ void TurboAssembler::LeaveFrame(StackFrame::Type type) {
lw(fp, MemOperand(fp, 0 * kPointerSize));
}
void MacroAssembler::EnterBuiltinFrame(Register context, Register target,
Register argc) {
Push(ra, fp);
Move(fp, sp);
Push(context, target, argc);
}
void MacroAssembler::LeaveBuiltinFrame(Register context, Register target,
Register argc) {
Pop(context, target, argc);
Pop(ra, fp);
}
void MacroAssembler::EnterExitFrame(bool save_doubles, int stack_space,
StackFrame::Type frame_type) {
BlockTrampolinePoolScope block_trampoline_pool(this);
......
......@@ -1172,10 +1172,6 @@ const Operand& rt = Operand(zero_reg), BranchDelaySlot bd = PROTECT
DecodeField<Field>(reg, reg);
}
void EnterBuiltinFrame(Register context, Register target, Register argc);
void LeaveBuiltinFrame(Register context, Register target, Register argc);
private:
// Helper functions for generating invokes.
void InvokePrologue(const ParameterCount& expected,
......
......@@ -5126,19 +5126,6 @@ void TurboAssembler::LeaveFrame(StackFrame::Type type) {
Ld(fp, MemOperand(fp, 0 * kPointerSize));
}
void MacroAssembler::EnterBuiltinFrame(Register context, Register target,
Register argc) {
Push(ra, fp);
Move(fp, sp);
Push(context, target, argc);
}
void MacroAssembler::LeaveBuiltinFrame(Register context, Register target,
Register argc) {
Pop(context, target, argc);
Pop(ra, fp);
}
void MacroAssembler::EnterExitFrame(bool save_doubles, int stack_space,
StackFrame::Type frame_type) {
DCHECK(frame_type == StackFrame::EXIT ||
......
......@@ -1241,9 +1241,6 @@ const Operand& rt = Operand(zero_reg), BranchDelaySlot bd = PROTECT
DecodeField<Field>(reg, reg);
}
void EnterBuiltinFrame(Register context, Register target, Register argc);
void LeaveBuiltinFrame(Register context, Register target, Register argc);
private:
// Helper functions for generating invokes.
void InvokePrologue(const ParameterCount& expected,
......
......@@ -2373,23 +2373,6 @@ void TurboAssembler::LeaveFrame(StackFrame::Type type) {
popq(rbp);
}
void MacroAssembler::EnterBuiltinFrame(Register context, Register target,
Register argc) {
Push(rbp);
Move(rbp, rsp);
Push(context);
Push(target);
Push(argc);
}
void MacroAssembler::LeaveBuiltinFrame(Register context, Register target,
Register argc) {
Pop(argc);
Pop(target);
Pop(context);
leave();
}
void MacroAssembler::EnterExitFramePrologue(bool save_rax,
StackFrame::Type frame_type) {
DCHECK(frame_type == StackFrame::EXIT ||
......
......@@ -874,9 +874,6 @@ class MacroAssembler : public TurboAssembler {
return SafepointRegisterStackIndex(reg.code());
}
void EnterBuiltinFrame(Register context, Register target, Register argc);
void LeaveBuiltinFrame(Register context, Register target, Register argc);
private:
// Order general registers are pushed by Pushad.
// rax, rcx, rdx, rbx, rsi, rdi, r8, r9, r11, r12, r14, r15.
......
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