Index: src/compiler/code-generator.h |
diff --git a/src/compiler/code-generator.h b/src/compiler/code-generator.h |
index 5c991425d133fcc4fbaf53772e0883995ca54f91..dc3dba24aeef910e88ea7b3cef9e6c9d2d3359a5 100644 |
--- a/src/compiler/code-generator.h |
+++ b/src/compiler/code-generator.h |
@@ -96,6 +96,9 @@ class CodeGenerator final : public GapResolver::Assembler { |
// Generates code to deconstruct a the caller's frame, including arguments. |
void AssembleDeconstructActivationRecord(int stack_param_delta); |
+ // Generates code to manipulate the stack in preparation for a tail call. |
+ void AssemblePrepareTailCall(int stack_param_delta); |
+ |
// =========================================================================== |
// ============== Architecture-specific gap resolver methods. ================ |
// =========================================================================== |
@@ -140,6 +143,12 @@ class CodeGenerator final : public GapResolver::Assembler { |
void EnsureSpaceForLazyDeopt(); |
void MarkLazyDeoptSite(); |
+ // 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 { |