V8 Project
|
#include <objects.h>
Public Member Functions | |
double | get_scalar (int index) |
int64_t | get_representation (int index) |
void | set (int index, double value) |
void | set_the_hole (int index) |
bool | is_the_hole (int index) |
double * | data_start () |
void | FillWithHoles (int from, int to) |
![]() | |
int | length () const |
void | set_length (int value) |
int | synchronized_length () const |
void | synchronized_set_length (int value) |
![]() | |
Map * | map () const |
void | set_map (Map *value) |
void | set_map_no_write_barrier (Map *value) |
Map * | synchronized_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) |
Heap * | GetHeap () const |
Isolate * | GetIsolate () 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) | |
![]() | |
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< HeapType > | OptimalType (Isolate *isolate, Representation representation) |
bool | HasValidElements () |
bool | HasSpecificClassOf (String *name) |
bool | BooleanValue () |
Object * | GetHash () |
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 | kMaxSize = 512 * MB |
static const int | kMaxLength = (kMaxSize - kHeaderSize) / kDoubleSize |
![]() | |
static const int | kLengthOffset = HeapObject::kHeaderSize |
static const int | kHeaderSize = kLengthOffset + kPointerSize |
![]() | |
static const int | kMapOffset = Object::kHeaderSize |
static const int | kHeaderSize = kMapOffset + kPointerSize |
![]() | |
static const int | kHeaderSize = 0 |
Private Member Functions | |
DISALLOW_IMPLICIT_CONSTRUCTORS (FixedDoubleArray) | |
Additional Inherited Members | |
![]() | |
enum | StoreFromKeyed { MAY_BE_STORE_FROM_KEYED , CERTAINLY_NOT_STORE_FROM_KEYED } |
enum | StorePropertyMode { NORMAL_PROPERTY , SUPER_PROPERTY } |
![]() | |
void | IteratePointers (ObjectVisitor *v, int start, int end) |
void | IteratePointer (ObjectVisitor *v, int offset) |
void | IterateNextCodeLink (ObjectVisitor *v, int offset) |
|
inlinestatic |
Definition at line 2210 of file objects-inl.h.
References DCHECK, v8::internal::kHoleNanInt64, v8::internal::kHoleNanUpper32, and v8::base::OS::nan_value().
Referenced by set().
|
inline |
Definition at line 2267 of file objects-inl.h.
References FIELD_ADDR, and v8::internal::FixedArrayBase::kHeaderSize.
Referenced by v8::internal::MoveDoubleElements().
|
private |
Definition at line 2272 of file objects-inl.h.
References set_the_hole(), and to().
|
inlinestatic |
Definition at line 2234 of file objects-inl.h.
Referenced by v8::internal::CopyDoubleToObjectElements().
|
inline |
Definition at line 2226 of file objects-inl.h.
References DCHECK, v8::internal::HeapObject::GetHeap(), v8::internal::kDoubleSize, v8::internal::FixedArrayBase::kHeaderSize, v8::internal::FixedArrayBase::length(), v8::internal::HeapObject::map(), and READ_INT64_FIELD.
|
inline |
Definition at line 2217 of file objects-inl.h.
References DCHECK, v8::internal::HeapObject::GetHeap(), is_the_hole_nan(), v8::internal::kDoubleSize, v8::internal::FixedArrayBase::kHeaderSize, v8::internal::FixedArrayBase::length(), v8::internal::HeapObject::map(), and READ_DOUBLE_FIELD.
Referenced by v8::internal::JSObject::PrepareElementsForSort(), and v8::internal::RUNTIME_FUNCTION().
|
inlinestatic |
Definition at line 2205 of file objects-inl.h.
References v8::internal::kHoleNanInt64.
Referenced by set_the_hole(), and v8::internal::HOptimizedGraphBuilder::TryInlineBuiltinMethodCall().
Definition at line 2261 of file objects-inl.h.
References is_the_hole_nan(), v8::internal::kDoubleSize, v8::internal::FixedArrayBase::kHeaderSize, and READ_DOUBLE_FIELD.
Referenced by v8::internal::JSObject::GetElementsCapacityAndUsage(), v8::internal::JSObject::PrepareElementsForSort(), and v8::internal::RUNTIME_FUNCTION().
|
inlinestatic |
Definition at line 2200 of file objects-inl.h.
References v8::internal::kHoleNanInt64.
Referenced by get_scalar(), is_the_hole(), v8::internal::FINAL< kOperandKind, kNumCachedOperands >::IsSpecialDouble(), and v8::internal::FINAL< kOperandKind, kNumCachedOperands >::IsTheHole().
|
inline |
Definition at line 2244 of file objects-inl.h.
References canonical_not_the_hole_nan_as_double(), DCHECK, v8::internal::HeapObject::GetHeap(), v8::internal::kDoubleSize, v8::internal::FixedArrayBase::kHeaderSize, v8::internal::HeapObject::map(), and WRITE_DOUBLE_FIELD.
Referenced by v8::internal::JSObject::PrepareElementsForSort(), and v8::internal::RUNTIME_FUNCTION().
|
inline |
Definition at line 2253 of file objects-inl.h.
References DCHECK, v8::internal::HeapObject::GetHeap(), hole_nan_as_double(), v8::internal::kDoubleSize, v8::internal::FixedArrayBase::kHeaderSize, v8::internal::HeapObject::map(), and WRITE_DOUBLE_FIELD.
Referenced by FillWithHoles(), and v8::internal::JSObject::PrepareElementsForSort().
Definition at line 2531 of file objects.h.
References v8::internal::kDoubleSize, and v8::internal::Object::kHeaderSize.
Referenced by v8::internal::Heap::AllocateRawFixedDoubleArray(), v8::internal::Heap::CopyFixedDoubleArrayWithMap(), v8::internal::ScavengingVisitor< marks_handling, logging_and_profiling_mode >::EvacuateFixedDoubleArray(), v8::internal::StaticNewSpaceVisitor< StaticVisitor >::INLINE(), and v8::internal::HeapObject::SizeFromMap().
|
static |
Definition at line 2554 of file objects.h.
Referenced by v8::internal::Heap::AllocateRawFixedDoubleArray(), v8::internal::BUILTIN(), and v8::internal::EstimateElementCount().