V8 Project
v8::internal::FixedArrayBase Class Reference

#include <objects.h>

+ Inheritance diagram for v8::internal::FixedArrayBase:
+ Collaboration diagram for v8::internal::FixedArrayBase:

Public Member Functions

int length () const
 
void set_length (int value)
 
int synchronized_length () const
 
void synchronized_set_length (int value)
 
- Public Member Functions inherited from v8::internal::HeapObject
Mapmap () const
 
void set_map (Map *value)
 
void set_map_no_write_barrier (Map *value)
 
Mapsynchronized_map ()
 
MapWord synchronized_map_word () const
 
void synchronized_set_map (Map *value)
 
void synchronized_set_map_no_write_barrier (Map *value)
 
void synchronized_set_map_word (MapWord map_word)
 
MapWord map_word () const
 
void set_map_word (MapWord map_word)
 
HeapGetHeap () const
 
IsolateGetIsolate () const
 
Address address ()
 
void Iterate (ObjectVisitor *v)
 
void IterateBody (InstanceType type, int object_size, ObjectVisitor *v)
 
int Size ()
 
bool MayContainRawValues ()
 
int SizeFromMap (Map *map)
 
WriteBarrierMode GetWriteBarrierMode (const DisallowHeapAllocation &promise)
 
void HeapObjectShortPrint (OStream &os)
 
 STATIC_ASSERT (kMapOffset==Internals::kHeapObjectMapOffset)
 
- Public Member Functions inherited from v8::internal::Object
bool IsObject () const
 
 INLINE (bool IsFixedArrayBase() const)
 
 INLINE (bool IsExternal() const)
 
 INLINE (bool IsAccessorInfo() const)
 
 INLINE (bool IsStruct() const)
 
 INLINE (bool IsSpecObject()) const
 
 INLINE (bool IsSpecFunction()) const
 
 INLINE (bool IsTemplateInfo()) const
 
 INLINE (bool IsNameDictionary() const)
 
 INLINE (bool IsSeededNumberDictionary() const)
 
 INLINE (bool IsUnseededNumberDictionary() const)
 
 INLINE (bool IsOrderedHashSet() const)
 
 INLINE (bool IsOrderedHashMap() const)
 
bool IsCallable () const
 
 INLINE (bool IsUndefined() const)
 
 INLINE (bool IsNull() const)
 
 INLINE (bool IsTheHole() const)
 
 INLINE (bool IsException() const)
 
 INLINE (bool IsUninitialized() const)
 
 INLINE (bool IsTrue() const)
 
 INLINE (bool IsFalse() const)
 
 INLINE (bool IsArgumentsMarker() const)
 
 INLINE (bool IsFiller() const)
 
double Number ()
 
 INLINE (bool IsNaN() const)
 
 INLINE (bool IsMinusZero() const)
 
bool ToInt32 (int32_t *value)
 
bool ToUint32 (uint32_t *value)
 
Representation OptimalRepresentation ()
 
bool FitsRepresentation (Representation representation)
 
Handle< HeapTypeOptimalType (Isolate *isolate, Representation representation)
 
bool HasValidElements ()
 
bool HasSpecificClassOf (String *name)
 
bool BooleanValue ()
 
ObjectGetHash ()
 
bool SameValue (Object *other)
 
bool SameValueZero (Object *other)
 
bool ToArrayIndex (uint32_t *index)
 
bool IsStringObjectWithCharacterAt (uint32_t index)
 
void VerifyApiCallResultType ()
 
void ShortPrint (FILE *out=stdout)
 
void ShortPrint (StringStream *accumulator)
 

Static Public Attributes

static const int kLengthOffset = HeapObject::kHeaderSize
 
static const int kHeaderSize = kLengthOffset + kPointerSize
 
- Static Public Attributes inherited from v8::internal::HeapObject
static const int kMapOffset = Object::kHeaderSize
 
static const int kHeaderSize = kMapOffset + kPointerSize
 
- Static Public Attributes inherited from v8::internal::Object
static const int kHeaderSize = 0
 

Additional Inherited Members

- Public Types inherited from v8::internal::Object
enum  StoreFromKeyed { MAY_BE_STORE_FROM_KEYED , CERTAINLY_NOT_STORE_FROM_KEYED }
 
enum  StorePropertyMode { NORMAL_PROPERTY , SUPER_PROPERTY }
 
- Static Public Member Functions inherited from v8::internal::HeapObject
static HeapObjectFromAddress (Address address)
 
static Object ** RawField (HeapObject *obj, int offset)
 
static void UpdateMapCodeCache (Handle< HeapObject > object, Handle< Name > name, Handle< Code > code)
 
- Static Public Member Functions inherited from v8::internal::Object
static Handle< ObjectNewStorageFor (Isolate *isolate, Handle< Object > object, Representation representation)
 
static Handle< ObjectWrapForRead (Isolate *isolate, Handle< Object > object, Representation representation)
 
static MaybeHandle< JSReceiverToObject (Isolate *isolate, Handle< Object > object)
 
static MaybeHandle< JSReceiverToObject (Isolate *isolate, Handle< Object > object, Handle< Context > context)
 
static MUST_USE_RESULT MaybeHandle< SmiToSmi (Isolate *isolate, Handle< Object > object)
 
static MUST_USE_RESULT MaybeHandle< ObjectGetProperty (LookupIterator *it)
 
static MUST_USE_RESULT MaybeHandle< ObjectSetProperty (Handle< Object > object, Handle< Name > key, Handle< Object > value, StrictMode strict_mode, StoreFromKeyed store_mode=MAY_BE_STORE_FROM_KEYED)
 
static MUST_USE_RESULT MaybeHandle< ObjectSetProperty (LookupIterator *it, Handle< Object > value, StrictMode strict_mode, StoreFromKeyed store_mode, StorePropertyMode data_store_mode=NORMAL_PROPERTY)
 
static MUST_USE_RESULT MaybeHandle< ObjectWriteToReadOnlyProperty (LookupIterator *it, Handle< Object > value, StrictMode strict_mode)
 
static Handle< ObjectSetDataProperty (LookupIterator *it, Handle< Object > value)
 
static MUST_USE_RESULT MaybeHandle< ObjectAddDataProperty (LookupIterator *it, Handle< Object > value, PropertyAttributes attributes, StrictMode strict_mode, StoreFromKeyed store_mode)
 
static MUST_USE_RESULT MaybeHandle< ObjectGetPropertyOrElement (Handle< Object > object, Handle< Name > key)
 
static MUST_USE_RESULT MaybeHandle< ObjectGetProperty (Isolate *isolate, Handle< Object > object, const char *key)
 
static MUST_USE_RESULT MaybeHandle< ObjectGetProperty (Handle< Object > object, Handle< Name > key)
 
static MUST_USE_RESULT MaybeHandle< ObjectGetPropertyWithAccessor (Handle< Object > receiver, Handle< Name > name, Handle< JSObject > holder, Handle< Object > structure)
 
static MUST_USE_RESULT MaybeHandle< ObjectSetPropertyWithAccessor (Handle< Object > receiver, Handle< Name > name, Handle< Object > value, Handle< JSObject > holder, Handle< Object > structure, StrictMode strict_mode)
 
static MUST_USE_RESULT MaybeHandle< ObjectGetPropertyWithDefinedGetter (Handle< Object > receiver, Handle< JSReceiver > getter)
 
static MUST_USE_RESULT MaybeHandle< ObjectSetPropertyWithDefinedSetter (Handle< Object > receiver, Handle< JSReceiver > setter, Handle< Object > value)
 
static MUST_USE_RESULT MaybeHandle< ObjectGetElement (Isolate *isolate, Handle< Object > object, uint32_t index)
 
static MUST_USE_RESULT MaybeHandle< ObjectGetElementWithReceiver (Isolate *isolate, Handle< Object > object, Handle< Object > receiver, uint32_t index)
 
static Handle< SmiGetOrCreateHash (Isolate *isolate, Handle< Object > object)
 
- Protected Member Functions inherited from v8::internal::HeapObject
void IteratePointers (ObjectVisitor *v, int start, int end)
 
void IteratePointer (ObjectVisitor *v, int offset)
 
void IterateNextCodeLink (ObjectVisitor *v, int offset)
 

Detailed Description

Definition at line 2378 of file objects.h.

Member Function Documentation

◆ length()

int v8::internal::FixedArrayBase::length ( ) const
inline

Referenced by v8::internal::ScopeInfo::CallsEval(), v8::internal::Heap::ClearJSFunctionResultCaches(), v8::internal::SharedFunctionInfo::ClearTypeFeedbackInfo(), v8::internal::FixedArray::ContainsOnlySmisOrHoles(), v8::internal::ScopeInfo::ContextLength(), v8::internal::Heap::CopyAndTenureFixedCOWArray(), v8::internal::CopyDictionaryToDoubleElements(), v8::internal::CopyDictionaryToObjectElements(), v8::internal::CopyDoubleToDoubleElements(), v8::internal::CopyDoubleToObjectElements(), v8::internal::NameDictionary::CopyEnumKeysTo(), v8::internal::Heap::CopyFixedArray(), v8::internal::Heap::CopyFixedArrayWithMap(), v8::internal::Heap::CopyFixedDoubleArray(), v8::internal::Heap::CopyFixedDoubleArrayWithMap(), v8::internal::Heap::CopyJSObject(), v8::internal::CopyObjectToDoubleElements(), v8::internal::CopyObjectToObjectElements(), v8::internal::CopyPackedSmiToDoubleElements(), v8::internal::CopySmiToDoubleElements(), v8::internal::Dictionary< Derived, Shape, Key >::CopyValuesTo(), v8::internal::ScopeInfo::Create(), v8::internal::FixedTypedArrayBase::DataSize(), v8::internal::JSObject::DefineElementAccessor(), v8::internal::AllocationSite::DigestTransitionFeedback(), v8::internal::SharedFunctionInfo::EvictFromOptimizedCodeMap(), v8::internal::ExternalOneByteString::ExternalOneByteStringGet(), v8::internal::ExternalTwoByteString::ExternalTwoByteStringGet(), v8::internal::V8HeapExplorer::ExtractClosureReferences(), v8::internal::V8HeapExplorer::ExtractElementReferences(), v8::internal::V8HeapExplorer::ExtractFixedArrayReferences(), v8::internal::FindSharedFunctionInfosForScript(), v8::internal::PolymorphicCodeCacheHashTableKey::FromObject(), v8::internal::ScopeInfo::FunctionContextSlotIndex(), v8::internal::Dictionary< Derived, Shape, Key >::GenerateNewEnumerationIndices(), v8::internal::FixedArray::get(), v8::internal::ByteArray::get(), v8::internal::ByteArray::get_int(), v8::internal::FixedDoubleArray::get_representation(), v8::internal::FixedDoubleArray::get_scalar(), v8::internal::ExternalUint8ClampedArray::get_scalar(), v8::internal::ExternalInt8Array::get_scalar(), v8::internal::ExternalUint8Array::get_scalar(), v8::internal::ExternalInt16Array::get_scalar(), v8::internal::ExternalUint16Array::get_scalar(), v8::internal::ExternalInt32Array::get_scalar(), v8::internal::ExternalUint32Array::get_scalar(), v8::internal::ExternalFloat32Array::get_scalar(), v8::internal::ExternalFloat64Array::get_scalar(), v8::internal::JSObject::GetElementsCapacityAndUsage(), v8::internal::CodeCache::GetIndex(), v8::internal::Script::GetLineNumberWithArray(), v8::internal::JSObject::GetOwnElementKeys(), v8::internal::JSObject::GetOwnPropertyNames(), v8::internal::BreakPointInfo::HasBreakPointObject(), v8::internal::ScopeInfo::HasFunctionName(), v8::internal::ScopeInfo::HasHeapAllocatedLocals(), v8::internal::StringsKey::HashForObject(), v8::internal::HeapSortPairs(), v8::internal::IsCodeEquivalent(), v8::internal::DescriptorArray::IsEmpty(), v8::internal::TransitionArray::IsFullTransitionArray(), v8::internal::StringsKey::IsMatch(), v8::internal::NormalizedMapCache::IsNormalizedMapCache(), v8::internal::TransitionArray::IsSimpleTransition(), v8::internal::HashTable< Derived, Shape, Key >::IterateElements(), v8::internal::ModuleInfo::length(), v8::internal::CodeCache::LookupDefaultCache(), v8::internal::StaticMarkingVisitor< StaticVisitor >::MarkMapContents(), v8::TypeSwitch::match(), v8::internal::HashTable< Derived, Shape, Key >::New(), v8::internal::FixedArray::NoIncrementalWriteBarrierSet(), v8::internal::FixedArray::NoWriteBarrierSet(), v8::internal::DependentCode::number_of_entries(), v8::internal::TransitionArray::number_of_transitions(), v8::internal::JSObject::NumberOfEnumElements(), v8::internal::JSFunction::NumberOfLiterals(), v8::internal::Map::NumberOfProtoTransitions(), v8::internal::ScopeInfo::ParameterEntriesIndex(), v8::internal::ScopeInfo::ParameterIndex(), v8::internal::DateParser::Parse(), v8::internal::MarkCompactCollector::ProcessMapCaches(), v8::internal::CodeFlusher::ProcessOptimizedCodeMaps(), v8::internal::JSArray::ReadOnlyLengthError(), v8::internal::JSObject::ReferencesObject(), v8::internal::JSObject::ReferencesObjectFromElements(), v8::internal::Code::relocation_size(), v8::internal::CodeCache::RemoveByIndex(), v8::internal::JavaScriptFrame::RestoreOperandStack(), v8::internal::RUNTIME_FUNCTION(), v8::internal::JavaScriptFrame::SaveOperandStack(), v8::internal::ScopeInfo::scope_type(), v8::internal::SharedFunctionInfo::SearchOptimizedCodeMap(), v8::internal::SeqOneByteString::SeqOneByteStringGet(), v8::internal::SeqOneByteString::SeqOneByteStringSet(), v8::internal::SeqOneByteString::SeqOneByteStringSize(), v8::internal::SeqTwoByteString::SeqTwoByteStringGet(), v8::internal::SeqTwoByteString::SeqTwoByteStringSet(), v8::internal::SeqTwoByteString::SeqTwoByteStringSize(), v8::internal::ByteArray::set(), v8::internal::ExternalFloat64Array::set(), v8::internal::ExternalFloat32Array::set(), v8::internal::ExternalInt16Array::set(), v8::internal::ExternalInt32Array::set(), v8::internal::ExternalInt8Array::set(), v8::internal::FixedArray::set(), v8::internal::ExternalUint16Array::set(), v8::internal::String::Set(), v8::internal::ExternalUint32Array::set(), v8::internal::ExternalUint8ClampedArray::set(), v8::internal::ExternalUint8Array::set(), v8::internal::FixedArray::set_null(), v8::internal::FixedArray::set_the_hole(), v8::internal::FixedArray::set_undefined(), v8::internal::JSObject::SetDictionaryElement(), v8::internal::JSObject::SetElement(), v8::internal::JSObject::SetElementCallback(), v8::internal::JSObject::SetElementWithoutInterceptor(), v8::internal::DescriptorArray::SetEnumCache(), v8::internal::JSObject::SetFastDoubleElement(), v8::internal::JSObject::SetFastElement(), v8::internal::Map::SetNumberOfProtoTransitions(), v8::internal::JSObject::ShouldConvertToFastElements(), v8::internal::FixedArray::SortPairs(), v8::internal::ScopeInfo::StackSlotCount(), v8::internal::ScopeInfo::StackSlotIndex(), v8::internal::ScopeInfo::strict_mode(), v8::internal::JSObject::TransitionElementsKind(), v8::internal::MarkCompactCollector::TrimEnumCache(), v8::internal::SharedFunctionInfo::TrimOptimizedCodeMap(), v8::internal::TypeCheck(), v8::internal::String::VisitFlat(), v8::internal::JSArray::WouldChangeReadOnlyLength(), v8::internal::Map::ZapPrototypeTransitions(), and v8::internal::Map::ZapTransitions().

◆ set_length()

void v8::internal::FixedArrayBase::set_length ( int  value)
inline

Referenced by v8::internal::Heap::AllocateFixedArrayWithFiller(), v8::internal::Heap::AllocateFixedTypedArray(), v8::internal::Heap::CopyAndTenureFixedCOWArray(), and v8::internal::Heap::CopyFixedArrayWithMap().

+ Here is the caller graph for this function:

◆ synchronized_length()

int v8::internal::FixedArrayBase::synchronized_length ( ) const
inline

◆ synchronized_set_length()

void v8::internal::FixedArrayBase::synchronized_set_length ( int  value)
inline

Member Data Documentation

◆ kHeaderSize

const int v8::internal::FixedArrayBase::kHeaderSize = kLengthOffset + kPointerSize
static

Definition at line 2393 of file objects.h.

Referenced by v8::internal::HOptimizedGraphBuilder::BuildAllocateFixedTypedArray(), v8::internal::CodeStubGraphBuilder< Stub >::BuildCodeStub(), v8::internal::CopyDoubleToDoubleElements(), v8::internal::CopyObjectToObjectElements(), v8::internal::FixedArray::data_start(), v8::internal::FixedDoubleArray::data_start(), v8::internal::FixedArrayElementOperand(), v8::internal::ByteArray::FromDataStartAddress(), v8::internal::FixedArray::get(), v8::internal::ByteArray::get(), v8::internal::ByteArray::get_int(), v8::internal::FixedDoubleArray::get_representation(), v8::internal::FixedDoubleArray::get_scalar(), v8::internal::SeqTwoByteString::GetChars(), v8::internal::SeqOneByteString::GetCharsAddress(), v8::internal::SeqTwoByteString::GetCharsAddress(), v8::internal::ByteArray::GetDataStartAddress(), v8::internal::GetDefaultHeaderSizeForElementsKind(), v8::internal::FixedDoubleArray::is_the_hole(), v8::internal::HashTable< Derived, Shape, Key >::IterateElements(), v8::internal::Heap::LeftTrimFixedArray(), v8::internal::FixedArray::NoIncrementalWriteBarrierSet(), v8::internal::FixedArray::NoWriteBarrierSet(), v8::internal::SeqOneByteString::SeqOneByteStringGet(), v8::internal::SeqOneByteString::SeqOneByteStringSet(), v8::internal::SeqTwoByteString::SeqTwoByteStringGet(), v8::internal::SeqTwoByteString::SeqTwoByteStringSet(), v8::internal::ByteArray::set(), v8::internal::FixedDoubleArray::set(), v8::internal::FixedArray::set(), v8::internal::FixedArray::set_null(), v8::internal::FixedArray::set_the_hole(), v8::internal::FixedDoubleArray::set_the_hole(), v8::internal::FixedArray::set_undefined(), and v8::internal::Context::SlotOffset().

◆ kLengthOffset


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