Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: src/compiler/code-generator.h

Issue 1455833004: [turbofan]: Implement tail calls with more callee than caller parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Improve comment Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/code-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/code-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698