Index: src/compiler/linkage.h |
diff --git a/src/compiler/linkage.h b/src/compiler/linkage.h |
index 45baa300bc19cdeee367dc1159a7a343fac50222..8d529323af61d01de9e7106fa52e0412586f20c6 100644 |
--- a/src/compiler/linkage.h |
+++ b/src/compiler/linkage.h |
@@ -185,7 +185,8 @@ class Linkage : public ZoneObject { |
CallDescriptor* GetIncomingDescriptor() const { return incoming_; } |
CallDescriptor* GetJSCallDescriptor(int parameter_count, |
CallDescriptor::Flags flags) const; |
- static CallDescriptor* GetJSCallDescriptor(Zone* zone, int parameter_count, |
+ static CallDescriptor* GetJSCallDescriptor(Zone* zone, bool is_osr, |
+ int parameter_count, |
CallDescriptor::Flags flags); |
CallDescriptor* GetRuntimeCallDescriptor( |
Runtime::FunctionId function, int parameter_count, |
@@ -240,6 +241,9 @@ class Linkage : public ZoneObject { |
// Get the location where an incoming OSR value is stored. |
LinkageLocation GetOsrValueLocation(int index) const; |
+ // A special parameter index for JSCalls that represents the closure. |
+ static const int kJSFunctionCallClosureParamIndex = -1; |
+ |
private: |
Isolate* isolate_; |
Zone* const zone_; |