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
StringHasher Class Reference

#include <objects.h>

Inheritance diagram for StringHasher:

Public Member Functions

 StringHasher (int length, uint32_t seed)
 
 INLINE (static uint32_t AddCharacterCore(uint32_t running_hash, uint16_t c))
 
 INLINE (static uint32_t GetHashCore(uint32_t running_hash))
 

Static Public Member Functions

template<typename schar >
static uint32_t HashSequentialString (const schar *chars, int length, uint32_t seed)
 
static uint32_t ComputeUtf8Hash (Vector< const char > chars, uint32_t seed, int *utf16_length_out)
 
static uint32_t MakeArrayIndexHash (uint32_t value, int length)
 

Static Public Attributes

static const int kZeroHash = 27
 

Protected Member Functions

uint32_t GetHashField ()
 
bool has_trivial_hash ()
 
template<typename Char >
void AddCharacters (const Char *chars, int len)
 

Detailed Description

Definition at line 8498 of file objects.h.

Constructor & Destructor Documentation

StringHasher ( int  length,
uint32_t  seed 
)
inlineexplicit

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

References ASSERT.

Member Function Documentation

void AddCharacters ( const Char *  chars,
int  len 
)
inlineprotected
bool has_trivial_hash ( )
inlineprotected
uint32_t HashSequentialString ( const schar *  chars,
int  length,
uint32_t  seed 
)
inlinestatic
INLINE ( static uint32_t   AddCharacterCoreuint32_t running_hash, uint16_t c)
INLINE ( static uint32_t   GetHashCoreuint32_t running_hash)

Field Documentation

const int kZeroHash = 27
static

Definition at line 8520 of file objects.h.

Referenced by TwoCharHashTableKey::TwoCharHashTableKey().


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