v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#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 |
|
inlineexplicit |
Definition at line 4930 of file objects-inl.h.
References ASSERT.
|
inline |
Definition at line 4964 of file objects-inl.h.
References StringHasher::AddSurrogatePair(), Utf16::kMaxNonSurrogateCharCode, and v8::internal::U.
Referenced by StringHasher::AddSurrogatePair(), String::ComputeHashField(), v8::internal::HashSequentialString(), and TwoCharHashTableKey::TwoCharHashTableKey().
|
inline |
Definition at line 4995 of file objects-inl.h.
References StringHasher::AddSurrogatePairNoIndex(), ASSERT, StringHasher::is_array_index(), and Utf16::kMaxNonSurrogateCharCode.
Referenced by StringHasher::AddSurrogatePairNoIndex(), String::ComputeHashField(), and v8::internal::HashSequentialString().
void AddSurrogatePair | ( | uc32 | c | ) |
Definition at line 7308 of file objects.cc.
References StringHasher::AddCharacter(), Utf16::LeadSurrogate(), and Utf16::TrailSurrogate().
Referenced by StringHasher::AddCharacter().
void AddSurrogatePairNoIndex | ( | uc32 | c | ) |
Definition at line 7316 of file objects.cc.
References StringHasher::AddCharacterNoIndex(), Utf16::LeadSurrogate(), and Utf16::TrailSurrogate().
Referenced by StringHasher::AddCharacterNoIndex().
uint32_t GetHashField | ( | ) |
Definition at line 7324 of file objects.cc.
References StringHasher::is_array_index(), String::kHashShift, String::kIsNotArrayIndexMask, String::kMaxHashCalcLength, and StringHasher::MakeArrayIndexHash().
Referenced by String::ComputeHashField(), and v8::internal::HashSequentialString().
|
inline |
Definition at line 4940 of file objects-inl.h.
References String::kMaxHashCalcLength.
Referenced by String::ComputeHashField(), and v8::internal::HashSequentialString().
|
inline |
Definition at line 7007 of file objects.h.
Referenced by StringHasher::AddCharacterNoIndex(), String::ComputeHashField(), StringHasher::GetHashField(), and v8::internal::HashSequentialString().
|
static |
Definition at line 7290 of file objects.cc.
References ASSERT, String::kArrayIndexHashLengthShift, String::kArrayIndexValueBits, String::kContainsCachedArrayIndexMask, String::kHashShift, String::kIsNotArrayIndexMask, String::kMaxArrayIndexSize, String::kMaxCachedArrayIndexLength, and v8::internal::TenToThe().
Referenced by StringHasher::GetHashField(), and v8::internal::RUNTIME_FUNCTION().
|
friend |
|
static |
Definition at line 7017 of file objects.h.
Referenced by TwoCharHashTableKey::TwoCharHashTableKey().