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

Unified Diff: src/elements.h

Issue 2232063002: [builtins] WIP: Array indexOf in TurboFan/Runtime (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add elements fastpaths Created 4 years, 4 months 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
Index: src/elements.h
diff --git a/src/elements.h b/src/elements.h
index f4b0b0b7c55931b21d8f15c651dbeaa478494bf2..84e311cece72c132574a5a7ed1245374a0ee2261 100644
--- a/src/elements.h
+++ b/src/elements.h
@@ -160,6 +160,13 @@ class ElementsAccessor {
Handle<Object> value, uint32_t start,
uint32_t length) = 0;
+ // Check an Object's own elements for the index ofan element (using SameValue
Jakob Kummerow 2016/08/17 15:42:59 nit: s/ofan/of an/
mattloring 2016/08/17 23:27:21 Done.
+ // semantics)
+ virtual Maybe<int32_t> IndexOfValue(Isolate* isolate,
+ Handle<JSObject> receiver,
+ Handle<Object> value, uint32_t start,
+ uint32_t length) = 0;
+
protected:
friend class LookupIterator;
« no previous file with comments | « src/builtins/builtins-array.cc ('k') | src/elements.cc » ('j') | src/elements.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698