Index: src/compiler/js-call-reducer.h |
diff --git a/src/compiler/js-call-reducer.h b/src/compiler/js-call-reducer.h |
index e9a92f1a63c90ebb4be6bf9f08c0df561b19907b..61d9f342b26789e8ba382f51f7b7f4ebd1760f2f 100644 |
--- a/src/compiler/js-call-reducer.h |
+++ b/src/compiler/js-call-reducer.h |
@@ -41,6 +41,9 @@ class JSCallReducer final : public AdvancedReducer { |
private: |
Reduction ReduceArrayConstructor(Node* node); |
+ Reduction ReduceCallApiFunction( |
+ Node* node, Node* target, |
+ Handle<FunctionTemplateInfo> function_template_info); |
Reduction ReduceNumberConstructor(Node* node); |
Reduction ReduceFunctionPrototypeApply(Node* node); |
Reduction ReduceFunctionPrototypeCall(Node* node); |
@@ -49,6 +52,12 @@ class JSCallReducer final : public AdvancedReducer { |
Reduction ReduceJSCallConstruct(Node* node); |
Reduction ReduceJSCallFunction(Node* node); |
+ enum HolderLookup { kHolderNotFound, kHolderIsReceiver, kHolderFound }; |
+ |
+ HolderLookup LookupHolder(Handle<JSObject> object, |
+ Handle<FunctionTemplateInfo> function_template_info, |
+ Handle<JSObject>* holder); |
+ |
Graph* graph() const; |
Flags flags() const { return flags_; } |
JSGraph* jsgraph() const { return jsgraph_; } |