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

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: Move fast path FastElements -> FastSmiOrObjectElements 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
« no previous file with comments | « src/builtins/builtins-array.cc ('k') | src/elements.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/elements.h
diff --git a/src/elements.h b/src/elements.h
index f4b0b0b7c55931b21d8f15c651dbeaa478494bf2..1ffd4d996fbfa4845f61fd9e62c421a352fc6e5e 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 of an element (using SameValue
+ // semantics)
+ virtual Maybe<int64_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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698