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
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 ()
 

Static Public Member Functions

static uint32_t MakeArrayIndexHash (uint32_t value, int length)
 

Static Public Attributes

static const int kZeroHash = 27
 

Friends

class TwoCharHashTableKey
 
template<bool seq_ascii>
class JsonParser
 

Detailed Description

Definition at line 6980 of file objects.h.

Constructor & Destructor Documentation

StringHasher ( int  length,
uint32_t  seed 
)
inlineexplicit

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

References ASSERT.

Member Function Documentation

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

Friends And Related Function Documentation

friend class JsonParser
friend

Definition at line 7038 of file objects.h.

friend class TwoCharHashTableKey
friend

Definition at line 7036 of file objects.h.

Field Documentation

const int kZeroHash = 27
static

Definition at line 7017 of file objects.h.

Referenced by TwoCharHashTableKey::TwoCharHashTableKey().


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