| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 4a177dc0e191bf1f38548ab2f2dd95d6f2adba4f..745a1c22ce5b7cc563be1aa9a05f7089eb93824f 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -2004,6 +2004,11 @@ class JSReceiver: public HeapObject {
|
| MUST_USE_RESULT static MaybeHandle<FixedArray> GetOwnEntries(
|
| Handle<JSReceiver> object, PropertyFilter filter);
|
|
|
| + MUST_USE_RESULT static Maybe<bool> IncludesValue(Isolate* isolate,
|
| + Handle<JSReceiver> object,
|
| + Handle<Object> value,
|
| + Handle<Object> start_from);
|
| +
|
| // Layout description.
|
| static const int kPropertiesOffset = HeapObject::kHeaderSize;
|
| static const int kHeaderSize = HeapObject::kHeaderSize + kPointerSize;
|
| @@ -2195,6 +2200,9 @@ class JSObject: public JSReceiver {
|
| static bool UnregisterPrototypeUser(Handle<Map> user, Isolate* isolate);
|
| static void InvalidatePrototypeChains(Map* map);
|
|
|
| + // Utility used by many Array builtins and runtime functions
|
| + static inline bool PrototypeHasNoElements(Isolate* isolate, JSObject* object);
|
| +
|
| // Alternative implementation of WeakFixedArray::NullCallback.
|
| class PrototypeRegistryCompactionCallback {
|
| public:
|
|
|