V8 Project
|
#include <objects.h>
Public Member Functions | |
Object * | Lookup (Name *name, Code::Flags flags) |
int | GetIndex (Object *name, Code *code) |
void | RemoveByIndex (Object *name, Code *code, int index) |
![]() | |
void | InitializeBody (int object_size) |
![]() | |
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 | kDefaultCacheOffset = HeapObject::kHeaderSize |
static const int | kNormalTypeCacheOffset |
static const int | kSize = kNormalTypeCacheOffset + kPointerSize |
![]() | |
static const int | kMapOffset = Object::kHeaderSize |
static const int | kHeaderSize = kMapOffset + kPointerSize |
![]() | |
static const int | kHeaderSize = 0 |
Private Member Functions | |
Object * | LookupDefaultCache (Name *name, Code::Flags flags) |
Object * | LookupNormalTypeCache (Name *name, Code::Flags flags) |
DISALLOW_IMPLICIT_CONSTRUCTORS (CodeCache) | |
Static Private Member Functions | |
static void | UpdateDefaultCache (Handle< CodeCache > code_cache, Handle< Name > name, Handle< Code > code) |
static void | UpdateNormalTypeCache (Handle< CodeCache > code_cache, Handle< Name > name, Handle< Code > code) |
Static Private Attributes | |
static const int | kCodeCacheEntrySize = 2 |
static const int | kCodeCacheEntryNameOffset = 0 |
static const int | kCodeCacheEntryCodeOffset = 1 |
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) |
|
private |
Definition at line 7409 of file objects.cc.
References v8::internal::Code::flags(), v8::internal::FixedArray::get(), v8::internal::CodeCacheHashTable::GetIndex(), v8::internal::FixedArrayBase::length(), name, v8::internal::Code::NORMAL, and v8::internal::Code::type().
Object * v8::internal::CodeCache::Lookup | ( | Name * | name, |
Code::Flags | flags | ||
) |
Definition at line 7370 of file objects.cc.
References v8::internal::anonymous_namespace{flags.cc}::flags, v8::internal::HeapObject::GetHeap(), name, and v8::internal::Code::RemoveTypeFromFlags().
|
private |
Definition at line 7380 of file objects.cc.
References v8::internal::Code::flags(), v8::internal::anonymous_namespace{flags.cc}::flags, v8::internal::FixedArray::get(), v8::internal::HeapObject::GetHeap(), v8::internal::FixedArrayBase::length(), name, and v8::internal::Code::RemoveTypeFromFlags().
|
private |
Definition at line 7399 of file objects.cc.
References v8::internal::anonymous_namespace{flags.cc}::flags, v8::internal::HeapObject::GetHeap(), v8::internal::CodeCacheHashTable::Lookup(), and name.
Definition at line 7425 of file objects.cc.
References DCHECK, DCHECK_EQ, v8::internal::Code::flags(), v8::internal::FixedArray::get(), v8::internal::CodeCacheHashTable::GetIndex(), v8::internal::FixedArrayBase::length(), name, v8::internal::Code::NORMAL, v8::internal::CodeCacheHashTable::RemoveByIndex(), v8::internal::FixedArray::set_null(), and v8::internal::Code::type().
|
static |
Definition at line 7280 of file objects.cc.
References DCHECK, v8::internal::CodeCacheHashTable::kInitialSize, name, v8::internal::HashTable< CodeCacheHashTable, CodeCacheHashTableShape, HashTableKey * >::New(), and v8::internal::Code::NORMAL.
Referenced by v8::internal::Map::UpdateCodeCache().
|
staticprivate |
Definition at line 7301 of file objects.cc.
References v8::internal::FixedArray::CopySize(), DCHECK, v8::internal::anonymous_namespace{flags.cc}::flags, v8::internal::handle(), name, and v8::internal::Code::RemoveTypeFromFlags().
|
staticprivate |
Definition at line 7360 of file objects.cc.
References name, and v8::internal::CodeCacheHashTable::Put().
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
static |
Definition at line 7919 of file objects.h.
Referenced by v8::internal::V8HeapExplorer::ExtractCodeCacheReferences().
|
static |
Definition at line 7920 of file objects.h.
Referenced by v8::internal::V8HeapExplorer::ExtractCodeCacheReferences().
|
static |