v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <heap.h>
Public Member Functions | |
int | Lookup (Map *map, Name *name) |
void | Update (Map *map, Name *name, int field_offset) |
void | Clear () |
STATIC_ASSERT ((kEntriesPerBucket &(kEntriesPerBucket-1))==0) | |
STATIC_ASSERT (kEntriesPerBucket==-kHashMask) | |
Static Public Attributes | |
static const int | kLength = 256 |
static const int | kCapacityMask = kLength - 1 |
static const int | kMapHashShift = 5 |
static const int | kHashMask = -4 |
static const int | kEntriesPerBucket = 4 |
static const int | kNotFound = -1 |
Friends | |
class | ExternalReference |
class | Isolate |
void Clear | ( | ) |
Definition at line 7669 of file heap.cc.
References KeyedLookupCache::kLength, and v8::internal::NULL.
Definition at line 7614 of file heap.cc.
References KeyedLookupCache::kEntriesPerBucket, KeyedLookupCache::kHashMask, and KeyedLookupCache::kNotFound.
Referenced by v8::internal::RUNTIME_FUNCTION().
STATIC_ASSERT | ( | (kEntriesPerBucket &(kEntriesPerBucket-1)) | = =0 | ) |
STATIC_ASSERT | ( | kEntriesPerBucket | = =-kHashMask | ) |
Definition at line 7626 of file heap.cc.
References ASSERT, String::cast(), HeapObject::GetIsolate(), Isolate::heap(), Heap::InNewSpace(), Heap::InternalizeStringIfExists(), KeyedLookupCache::kEntriesPerBucket, KeyedLookupCache::kHashMask, v8::internal::map, v8::internal::name, and v8::internal::NULL.
Referenced by v8::internal::RUNTIME_FUNCTION().
|
static |
Definition at line 2761 of file heap.h.
Referenced by KeyedLookupCache::Lookup(), and KeyedLookupCache::Update().
|
static |
Definition at line 2760 of file heap.h.
Referenced by KeyedLookupCache::Lookup(), and KeyedLookupCache::Update().
|
static |
Definition at line 2757 of file heap.h.
Referenced by KeyedLookupCache::Clear().
|
static |
Definition at line 2762 of file heap.h.
Referenced by KeyedLookupCache::Lookup().