v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
elements-inl.h
Go to the documentation of this file.
1// Copyright 2018 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef V8_OBJECTS_ELEMENTS_INL_H_
6#define V8_OBJECTS_ELEMENTS_INL_H_
7
9// Include the non-inl header before the rest of the headers.
10
11#include "src/common/globals.h"
14
15namespace v8 {
16namespace internal {
17
20 KeyAccumulator* keys) {
22 object, direct_handle(object->elements(), keys->isolate()), keys);
23}
24
26 Isolate* isolate, DirectHandle<JSObject> object,
28 PropertyFilter filter) {
29 return PrependElementIndices(isolate, object,
30 direct_handle(object->elements(), isolate), keys,
31 convert, filter);
32}
33
35 uint32_t index,
36 PropertyFilter filter) {
37 return HasElement(holder, index, holder->elements(), filter);
38}
39
40} // namespace internal
41} // namespace v8
42
43#endif // V8_OBJECTS_ELEMENTS_INL_H_
virtual bool HasElement(Tagged< JSObject > holder, uint32_t index, Tagged< FixedArrayBase > backing_store, PropertyFilter filter=ALL_PROPERTIES)=0
virtual MaybeHandle< FixedArray > PrependElementIndices(Isolate *isolate, DirectHandle< JSObject > object, DirectHandle< FixedArrayBase > backing_store, DirectHandle< FixedArray > keys, GetKeysConversion convert, PropertyFilter filter=ALL_PROPERTIES)=0
virtual V8_WARN_UNUSED_RESULT ExceptionStatus CollectElementIndices(DirectHandle< JSObject > object, DirectHandle< FixedArrayBase > backing_store, KeyAccumulator *keys)=0
GetKeysConversion
Definition keys.h:22
V8_INLINE DirectHandle< T > direct_handle(Tagged< T > object, Isolate *isolate)
#define V8_WARN_UNUSED_RESULT
Definition v8config.h:671