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
IteratingStringHasher Class Reference
Inheritance diagram for IteratingStringHasher:
Collaboration diagram for IteratingStringHasher:

Public Member Functions

void VisitOneByteString (const uint8_t *chars, unsigned length)
 
void VisitTwoByteString (const uint16_t *chars, unsigned length)
 
- Public Member Functions inherited from StringHasher
 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

static uint32_t Hash (String *string, uint32_t seed)
 
- Static Public Member Functions inherited from StringHasher
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)
 

Additional Inherited Members

- Static Public Attributes inherited from StringHasher
static const int kZeroHash = 27
 
- Protected Member Functions inherited from StringHasher
uint32_t GetHashField ()
 
bool has_trivial_hash ()
 
template<typename Char >
void AddCharacters (const Char *chars, int len)
 

Detailed Description

Definition at line 9033 of file objects.cc.

Member Function Documentation

static uint32_t Hash ( String string,
uint32_t  seed 
)
inlinestatic
void VisitOneByteString ( const uint8_t *  chars,
unsigned  length 
)
inline

Definition at line 9065 of file objects.cc.

References StringHasher::AddCharacters().

void VisitTwoByteString ( const uint16_t *  chars,
unsigned  length 
)
inline

Definition at line 9069 of file objects.cc.

References StringHasher::AddCharacters().


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