Index: src/hydrogen.h |
diff --git a/src/hydrogen.h b/src/hydrogen.h |
index bb05ebbfb4c9043412166980131463c1391fd68e..4544bbb4f57ec8335703d6b601edf3f3dc6b7d48 100644 |
--- a/src/hydrogen.h |
+++ b/src/hydrogen.h |
@@ -2251,6 +2251,12 @@ class HOptimizedGraphBuilder : public HGraphBuilder, public AstVisitor { |
void BuildArrayCall(Expression* expr, int arguments_count, HValue* function, |
Handle<AllocationSite> cell); |
+ enum ArrayIndexOfMode { kFirstIndexOf, kLastIndexOf }; |
+ HValue* BuildArrayIndexOf(HValue* receiver, |
+ HValue* search_element, |
+ ElementsKind kind, |
+ ArrayIndexOfMode mode); |
+ |
HValue* ImplicitReceiverFor(HValue* function, |
Handle<JSFunction> target); |