V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::FixedArray Class Reference
Inheritance diagram for v8::internal::FixedArray:
v8::internal::FixedArrayBase v8::internal::HeapObjectPtr v8::internal::ObjectPtr v8::internal::OrderedHashTable< OrderedHashMap, 2 > v8::internal::OrderedHashTable< OrderedHashSet, 1 > v8::internal::OrderedHashTable< OrderedNameDictionary, 3 > v8::internal::ArrayList v8::internal::ClassBoilerplate v8::internal::CoverageInfo v8::internal::DeoptimizationData v8::internal::FixedArrayExact v8::internal::FrameArray v8::internal::ModuleInfo v8::internal::ObjectBoilerplateDescription v8::internal::OrderedHashTable< Derived, entrysize > v8::internal::PropertyDescriptorObject v8::internal::ScopeInfo v8::internal::ScriptContextTable v8::internal::SloppyArgumentsElements v8::internal::TemplateList

Public Types

typedef FlexibleBodyDescriptor< kHeaderSize > BodyDescriptor
 

Public Member Functions

Objectget (int index) const
 
template<class T >
MaybeHandle< TGetValue (Isolate *isolate, int index) const
 
template<class T >
Handle< TGetValueChecked (Isolate *isolate, int index) const
 
void set (int index, Object *value)
 
bool is_the_hole (Isolate *isolate, int index)
 
void set (int index, Smi value)
 
void set (int index, Object *value, WriteBarrierMode mode)
 
void set_undefined (int index)
 
void set_undefined (Isolate *isolate, int index)
 
void set_null (int index)
 
void set_null (Isolate *isolate, int index)
 
void set_the_hole (int index)
 
void set_the_hole (Isolate *isolate, int index)
 
ObjectSlot GetFirstElementAddress ()
 
bool ContainsOnlySmisOrHoles ()
 
bool ContainsSortedNumbers ()
 
ObjectSlot data_start ()
 
void MoveElements (Heap *heap, int dst_index, int src_index, int len, WriteBarrierMode mode)
 
void FillWithHoles (int from, int to)
 
void Shrink (Isolate *isolate, int new_length)
 
void CopyTo (int pos, FixedArray dest, int dest_pos, int len) const
 
ObjectSlot RawFieldOfElementAt (int index)
 
 STATIC_ASSERT (kMaxRegularHeapObjectSize< kMaxSize)
 
- Public Member Functions inherited from v8::internal::FixedArrayBase
int length () const
 
void set_length (int value)
 
int synchronized_length () const
 
void synchronized_set_length (int value)
 
Objectunchecked_synchronized_length () const
 
bool IsCowArray () const
 
- Public Member Functions inherited from v8::internal::HeapObjectPtr
Map map () const
 
void set_map (Map value)
 
void set_map_after_allocation (Map value, WriteBarrierMode mode=UPDATE_WRITE_BARRIER)
 
void set_map_no_write_barrier (Map value)
 
ObjectSlot map_slot ()
 
MapWord map_word () const
 
void set_map_word (MapWord map_word)
 
void synchronized_set_map (Map value)
 
void synchronized_set_map_word (MapWord map_word)
 
WriteBarrierMode GetWriteBarrierMode (const DisallowHeapAllocation &promise)
 
 operator HeapObject * ()
 
 operator const HeapObject * () const
 
bool is_null () const
 
bool IsHeapObjectPtr () const
 
ReadOnlyRoots GetReadOnlyRoots () const
 
Address address () const
 
int Size () const
 
int SizeFromMap (Map map) const
 
ObjectSlot RawField (int byte_offset) const
 
MaybeObjectSlot RawMaybeWeakField (int byte_offset) const
 
void HeapObjectVerify (Isolate *isolate)
 
Address GetFieldAddress (int field_offset) const
 
- Public Member Functions inherited from v8::internal::ObjectPtr
constexpr ObjectPtr (Address ptr)
 
 operator Object * () const
 
bool operator== (const ObjectPtr other) const
 
bool operator!= (const ObjectPtr other) const
 
bool operator< (const ObjectPtr other) const
 
constexpr Address ptr () const
 
ObjectPtroperator-> ()
 
const ObjectPtroperator-> () const
 
bool IsHashTableBase () const
 
V8_INLINE bool IsSmallOrderedHashTable () const
 
bool IsObject () const
 
double Number () const
 
bool ToInt32 (int32_t *value) const
 
bool ToUint32 (uint32_t *value) const
 
bool BooleanValue (Isolate *isolate)
 
bool FilterKey (PropertyFilter filter)
 
ObjectGetHash ()
 
Smi GetOrCreateHash (Isolate *isolate)
 
V8_EXPORT_PRIVATE bool SameValue (Object *other)
 
V8_WARN_UNUSED_RESULT bool ToArrayIndex (uint32_t *index) const
 
void ShortPrint (FILE *out=stdout)
 
void ShortPrint (std::ostream &os)
 
void Print ()
 
void Print (std::ostream &os)
 

Static Public Member Functions

static Handle< Objectget (FixedArray array, int index, Isolate *isolate)
 
static Handle< FixedArraySetAndGrow (Isolate *isolate, Handle< FixedArray > array, int index, Handle< Object > value, PretenureFlag pretenure=NOT_TENURED)
 
static Handle< FixedArrayShrinkOrEmpty (Isolate *isolate, Handle< FixedArray > array, int new_length)
 
static constexpr int SizeFor (int length)
 
static constexpr int OffsetOfElementAt (int index)
 
- Static Public Member Functions inherited from v8::internal::FixedArrayBase
static int GetMaxLengthForNewSpaceAllocation (ElementsKind kind)
 

Static Public Attributes

static const int kMaxLength = (kMaxSize - kHeaderSize) / kTaggedSize
 
static const int kMaxRegularLength
 
- Static Public Attributes inherited from v8::internal::FixedArrayBase
static const int kMaxSize = 1024 * MB
 
- Static Public Attributes inherited from v8::internal::HeapObjectPtr
static const int kMapOffset = HeapObject::kMapOffset
 
static const int kHeaderSize = HeapObject::kHeaderSize
 

Static Protected Member Functions

static void NoWriteBarrierSet (FixedArray array, int index, Object *value)
 

Additional Inherited Members

- Protected Types inherited from v8::internal::HeapObjectPtr
enum  AllowInlineSmiStorage { kRequireHeapObjectTag, kAllowBeingASmi }
 
- Protected Member Functions inherited from v8::internal::HeapObjectPtr
 HeapObjectPtr (Address ptr, AllowInlineSmiStorage allow_smi)
 

Detailed Description

Definition at line 118 of file fixed-array.h.

Member Data Documentation

◆ kMaxRegularLength

const int v8::internal::FixedArray::kMaxRegularLength
static
Initial value:
=
(kMaxRegularHeapObjectSize - kHeaderSize) / kTaggedSize

Definition at line 196 of file fixed-array.h.


The documentation for this class was generated from the following files: