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

Unified Diff: src/compiler/linkage.h

Issue 1439613003: [turbofan] Better and more sane support for tail calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Skip test in ignition configuration 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/js-intrinsic-lowering.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/linkage.h
diff --git a/src/compiler/linkage.h b/src/compiler/linkage.h
index 0f4b8db1c448055bc4568d5673bbf0b26a53fce5..04b6e98202c38014244ddbf6026257b830222fd3 100644
--- a/src/compiler/linkage.h
+++ b/src/compiler/linkage.h
@@ -57,6 +57,15 @@ class LinkageLocation {
return LinkageLocation(STACK_SLOT, slot);
}
+ static LinkageLocation ConvertToTailCallerLocation(
+ LinkageLocation caller_location, int stack_param_delta) {
+ if (!caller_location.IsRegister()) {
+ return LinkageLocation(STACK_SLOT,
+ caller_location.GetLocation() + stack_param_delta);
+ }
+ return caller_location;
+ }
+
private:
friend class CallDescriptor;
friend class OperandGenerator;
@@ -222,7 +231,7 @@ class CallDescriptor final : public ZoneObject {
bool HasSameReturnLocationsAs(const CallDescriptor* other) const;
- bool CanTailCall(const Node* call) const;
+ bool CanTailCall(const Node* call, int* stack_param_delta) const;
private:
friend class Linkage;
« no previous file with comments | « src/compiler/js-intrinsic-lowering.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698