v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
KeyedLookupCache Class Reference

#include <heap.h>

Public Member Functions

int Lookup (Map *map, String *name)
 
void Update (Map *map, String *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
 

Detailed Description

Definition at line 2337 of file heap.h.

Member Function Documentation

void Clear ( )

Definition at line 7141 of file heap.cc.

References KeyedLookupCache::kLength, and v8::internal::NULL.

int Lookup ( Map map,
String name 
)
STATIC_ASSERT ( (kEntriesPerBucket &(kEntriesPerBucket-1))  = =0)
STATIC_ASSERT ( kEntriesPerBucket  = =-kHashMask)
void Update ( Map map,
String name,
int  field_offset 
)

Friends And Related Function Documentation

friend class ExternalReference
friend

Definition at line 2388 of file heap.h.

friend class Isolate
friend

Definition at line 2389 of file heap.h.

Field Documentation

const int kCapacityMask = kLength - 1
static

Definition at line 2349 of file heap.h.

const int kEntriesPerBucket = 4
static

Definition at line 2352 of file heap.h.

Referenced by KeyedLookupCache::Lookup(), and KeyedLookupCache::Update().

const int kHashMask = -4
static

Definition at line 2351 of file heap.h.

Referenced by KeyedLookupCache::Lookup(), and KeyedLookupCache::Update().

const int kLength = 256
static

Definition at line 2348 of file heap.h.

Referenced by KeyedLookupCache::Clear().

const int kMapHashShift = 5
static

Definition at line 2350 of file heap.h.

const int kNotFound = -1
static

Definition at line 2353 of file heap.h.

Referenced by KeyedLookupCache::Lookup().


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