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

Unified Diff: src/elements.h

Issue 2205883003: Reland [builtins] implement Array.prototype.includes in TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compiler warning 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 ae48d4ef07257ef8504804c01a986842a977ca6b..a2fb0352cab91c576c73e84147d6b763dbeccf7f 100644
--- a/src/elements.h
+++ b/src/elements.h
@@ -154,6 +154,12 @@ class ElementsAccessor {
virtual uint32_t GetCapacity(JSObject* holder,
FixedArrayBase* backing_store) = 0;
+ // Check an Object's own elements for an element (using SameValueZero
+ // semantics)
+ virtual Maybe<bool> IncludesValue(Isolate* isolate, Handle<JSObject> receiver,
+ Handle<Object> value, uint32_t start,
+ uint32_t length) = 0;
+
protected:
friend class LookupIterator;

Powered by Google App Engine
This is Rietveld 408576698