| Index: src/compiler/code-generator.h
|
| diff --git a/src/compiler/code-generator.h b/src/compiler/code-generator.h
|
| index 5f35e8a36ec5da8f9e5a81b0c3e49ed30461630a..ebfbb2db51816a0dd036a28ea83c7624bcd1aa5a 100644
|
| --- a/src/compiler/code-generator.h
|
| +++ b/src/compiler/code-generator.h
|
| @@ -101,6 +101,11 @@ class CodeGenerator final : public GapResolver::Assembler {
|
| void AssembleSourcePosition(Instruction* instr);
|
| void AssembleGaps(Instruction* instr);
|
|
|
| + // Returns true if a instruction needs to adjust the stack pointer before
|
| + // execution. The stack slot index to the empty slot above the adjusted stack
|
| + // pointer is returned in |slot|.
|
| + bool GetSlotAboveSPAfterGap(Instruction* instr, int* slot);
|
| +
|
| // ===========================================================================
|
| // ============= Architecture-specific code generation methods. ==============
|
| // ===========================================================================
|
| @@ -123,18 +128,18 @@ class CodeGenerator final : public GapResolver::Assembler {
|
| // to tear down a stack frame.
|
| void AssembleReturn();
|
|
|
| - // Generates code to deconstruct a the caller's frame, including arguments.
|
| - void AssembleDeconstructActivationRecord(int stack_param_delta);
|
| -
|
| void AssembleDeconstructFrame();
|
|
|
| // Generates code to manipulate the stack in preparation for a tail call.
|
| - void AssemblePrepareTailCall(int stack_param_delta);
|
| + void AssemblePrepareTailCall();
|
|
|
| // Generates code to pop current frame if it is an arguments adaptor frame.
|
| void AssemblePopArgumentsAdaptorFrame(Register args_reg, Register scratch1,
|
| Register scratch2, Register scratch3);
|
|
|
| + void AssemblePreGaps(Instruction* instr);
|
| + void AssemblePostGaps(Instruction* instr);
|
| +
|
| // ===========================================================================
|
| // ============== Architecture-specific gap resolver methods. ================
|
| // ===========================================================================
|
| @@ -187,12 +192,6 @@ class CodeGenerator final : public GapResolver::Assembler {
|
| DeoptimizationExit* AddDeoptimizationExit(Instruction* instr,
|
| size_t frame_state_offset);
|
|
|
| - // Converts the delta in the number of stack parameter passed from a tail
|
| - // caller to the callee into the distance (in pointers) the SP must be
|
| - // adjusted, taking frame elision and other relevant factors into
|
| - // consideration.
|
| - int TailCallFrameStackSlotDelta(int stack_param_delta);
|
| -
|
| // ===========================================================================
|
|
|
| struct DeoptimizationState : ZoneObject {
|
|
|