V8 Project
|
#include <objects.h>
Public Member Functions | |
int | Size () |
byte | get (int index) |
void | set (int index, byte value) |
int | get_int (int index) |
Address | GetDataStartAddress () |
int | ByteArraySize () |
![]() | |
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 | kAlignedSize = OBJECT_POINTER_ALIGN(kHeaderSize) |
static const int | kMaxSize = 512 * MB |
static const int | kMaxLength = kMaxSize - kHeaderSize |
![]() | |
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 (ByteArray) | |
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) |
|
inline |
|
private |
Definition at line 3788 of file objects-inl.h.
References v8::internal::HeapObject::address(), DCHECK_TAG_ALIGNED, v8::internal::FixedArrayBase::kHeaderSize, and v8::internal::kHeapObjectTag.
Definition at line 3770 of file objects-inl.h.
References DCHECK, v8::internal::kCharSize, v8::internal::FixedArrayBase::kHeaderSize, v8::internal::FixedArrayBase::length(), and READ_BYTE_FIELD.
Definition at line 3782 of file objects-inl.h.
References DCHECK, v8::internal::FixedArrayBase::kHeaderSize, v8::internal::kIntSize, v8::internal::FixedArrayBase::length(), and READ_INT_FIELD.
|
inline |
Definition at line 3794 of file objects-inl.h.
References v8::internal::FixedArrayBase::kHeaderSize, and v8::internal::kHeapObjectTag.
Referenced by v8::internal::IsCodeEquivalent(), and v8::internal::Code::relocation_start().
Definition at line 4367 of file objects.h.
References DCHECK, v8::internal::IsAligned(), v8::internal::Object::kHeaderSize, and v8::internal::kPointerSize.
Definition at line 3776 of file objects-inl.h.
References DCHECK, v8::internal::kCharSize, v8::internal::FixedArrayBase::kHeaderSize, v8::internal::FixedArrayBase::length(), and WRITE_BYTE_FIELD.
|
inline |
Definition at line 4351 of file objects.h.
References v8::internal::Object::kHeaderSize, v8::internal::kPointerSize, and v8::internal::RoundUp().
Definition at line 4360 of file objects.h.
References v8::internal::Object::kHeaderSize, and OBJECT_POINTER_ALIGN.
Referenced by v8::internal::Heap::AllocateByteArray().
|
static |
|
static |
Definition at line 4394 of file objects.h.
Referenced by v8::internal::Heap::AllocateByteArray().