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

#include <objects.h>

Public Member Functions

 StringHasher (int length, uint32_t seed)
 
bool has_trivial_hash ()
 
void AddCharacter (uint32_t c)
 
void AddCharacterNoIndex (uint32_t c)
 
void AddSurrogatePair (uc32 c)
 
void AddSurrogatePairNoIndex (uc32 c)
 
uint32_t GetHashField ()
 
bool is_array_index ()
 
bool is_valid ()
 
void invalidate ()
 

Static Public Member Functions

static uint32_t MakeArrayIndexHash (uint32_t value, int length)
 

Static Public Attributes

static const int kZeroHash = 27
 

Friends

class TwoCharHashTableKey
 

Detailed Description

Definition at line 6775 of file objects.h.

Constructor & Destructor Documentation

StringHasher ( int  length,
uint32_t  seed 
)
inlineexplicit

Definition at line 4657 of file objects-inl.h.

References ASSERT.

Member Function Documentation

void AddSurrogatePair ( uc32  c)
void AddSurrogatePairNoIndex ( uc32  c)
bool has_trivial_hash ( )
inline
void invalidate ( )
inline

Definition at line 6806 of file objects.h.

bool is_valid ( )
inline

Definition at line 6804 of file objects.h.

Referenced by StringHasher::GetHashField().

Friends And Related Function Documentation

friend class TwoCharHashTableKey
friend

Definition at line 6832 of file objects.h.

Field Documentation

const int kZeroHash = 27
static

Definition at line 6816 of file objects.h.


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