v8  3.25.30(node0.11.13)
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, 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
 

Detailed Description

Definition at line 2746 of file heap.h.

Member Function Documentation

void Clear ( )

Definition at line 7669 of file heap.cc.

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

int Lookup ( Map map,
Name name 
)
STATIC_ASSERT ( (kEntriesPerBucket &(kEntriesPerBucket-1))  = =0)
STATIC_ASSERT ( kEntriesPerBucket  = =-kHashMask)

Friends And Related Function Documentation

friend class ExternalReference
friend

Definition at line 2797 of file heap.h.

friend class Isolate
friend

Definition at line 2798 of file heap.h.

Field Documentation

const int kCapacityMask = kLength - 1
static

Definition at line 2758 of file heap.h.

const int kEntriesPerBucket = 4
static

Definition at line 2761 of file heap.h.

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

const int kHashMask = -4
static

Definition at line 2760 of file heap.h.

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

const int kLength = 256
static

Definition at line 2757 of file heap.h.

Referenced by KeyedLookupCache::Clear().

const int kMapHashShift = 5
static

Definition at line 2759 of file heap.h.

const int kNotFound = -1
static

Definition at line 2762 of file heap.h.

Referenced by KeyedLookupCache::Lookup().


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