Index: src/compiler/js-typed-lowering.h |
diff --git a/src/compiler/js-typed-lowering.h b/src/compiler/js-typed-lowering.h |
index 8b3b10f6586dff1cb40cbff58fe0e7fb3166203f..74bb25700822b7f63ac6c02d7fb49a4b76cb250c 100644 |
--- a/src/compiler/js-typed-lowering.h |
+++ b/src/compiler/js-typed-lowering.h |
@@ -52,6 +52,7 @@ class V8_EXPORT_PRIVATE JSTypedLowering final |
Reduction ReduceJSLoadNamed(Node* node); |
Reduction ReduceJSLoadProperty(Node* node); |
Reduction ReduceJSStoreProperty(Node* node); |
+ Reduction ReduceJSHasInPrototypeChain(Node* node); |
Reduction ReduceJSOrdinaryHasInstance(Node* node); |
Reduction ReduceJSLoadContext(Node* node); |
Reduction ReduceJSStoreContext(Node* node); |
@@ -93,6 +94,17 @@ class V8_EXPORT_PRIVATE JSTypedLowering final |
// Helper for ReduceJSLoadModule and ReduceJSStoreModule. |
Node* BuildGetModuleCell(Node* node); |
+ // Checks if we know at compile time that the {receiver} either definitely |
+ // has the {prototype} in it's prototype chain, or the {receiver} definitely |
+ // doesn't have the {prototype} in it's prototype chain. |
+ enum InferHasInPrototypeChainResult { |
+ kIsInPrototypeChain, |
+ kIsNotInPrototypeChain, |
+ kMayBeInPrototypeChain |
+ }; |
+ InferHasInPrototypeChainResult InferHasInPrototypeChain( |
+ Node* receiver, Node* effect, Handle<HeapObject> prototype); |
+ |
Factory* factory() const; |
Graph* graph() const; |
JSGraph* jsgraph() const { return jsgraph_; } |