diff options
Diffstat (limited to 'deps/v8/src/elements.h')
-rw-r--r-- | deps/v8/src/elements.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/deps/v8/src/elements.h b/deps/v8/src/elements.h index a7dab7daa54..b0aa911f329 100644 --- a/deps/v8/src/elements.h +++ b/deps/v8/src/elements.h @@ -48,9 +48,7 @@ class ElementsAccessor { PropertyFilter filter = ALL_PROPERTIES) = 0; inline bool HasElement(JSObject* holder, uint32_t index, - PropertyFilter filter = ALL_PROPERTIES) { - return HasElement(holder, index, holder->elements(), filter); - } + PropertyFilter filter = ALL_PROPERTIES); // Note: this is currently not implemented for string wrapper and // typed array elements. @@ -88,10 +86,7 @@ class ElementsAccessor { KeyAccumulator* keys) = 0; inline void CollectElementIndices(Handle<JSObject> object, - KeyAccumulator* keys) { - CollectElementIndices(object, handle(object->elements(), keys->isolate()), - keys); - } + KeyAccumulator* keys); virtual Maybe<bool> CollectValuesOrEntries( Isolate* isolate, Handle<JSObject> object, @@ -105,11 +100,7 @@ class ElementsAccessor { inline MaybeHandle<FixedArray> PrependElementIndices( Handle<JSObject> object, Handle<FixedArray> keys, - GetKeysConversion convert, PropertyFilter filter = ALL_PROPERTIES) { - return PrependElementIndices( - object, handle(object->elements(), object->GetIsolate()), keys, convert, - filter); - } + GetKeysConversion convert, PropertyFilter filter = ALL_PROPERTIES); virtual void AddElementsToKeyAccumulator(Handle<JSObject> receiver, KeyAccumulator* accumulator, @@ -157,9 +148,8 @@ class ElementsAccessor { virtual uint32_t GetCapacity(JSObject* holder, FixedArrayBase* backing_store) = 0; - virtual Object* Fill(Isolate* isolate, Handle<JSObject> receiver, - Handle<Object> obj_value, uint32_t start, - uint32_t end) = 0; + virtual Object* Fill(Handle<JSObject> receiver, Handle<Object> obj_value, + uint32_t start, uint32_t end) = 0; // Check an Object's own elements for an element (using SameValueZero // semantics) @@ -174,8 +164,7 @@ class ElementsAccessor { Handle<Object> value, uint32_t start, uint32_t length) = 0; - virtual Maybe<int64_t> LastIndexOfValue(Isolate* isolate, - Handle<JSObject> receiver, + virtual Maybe<int64_t> LastIndexOfValue(Handle<JSObject> receiver, Handle<Object> value, uint32_t start) = 0; |