#include <object.h>
Definition at line 10498 of file object.h.
◆ StringHasher()
dart::StringHasher::StringHasher |
( |
| ) |
|
|
inline |
◆ Add() [1/4]
void dart::StringHasher::Add |
( |
const String & |
str, |
|
|
intptr_t |
begin_index, |
|
|
intptr_t |
len |
|
) |
| |
Definition at line 23461 of file object.cc.
23461 {
23462 ASSERT(begin_index >= 0);
23464 ASSERT((begin_index +
len) <= str.Length());
23466 return;
23467 }
23468 if (str.IsOneByteString()) {
23469 NoSafepointScope no_safepoint;
23470 Add(OneByteString::CharAddr(str, begin_index),
len);
23471 } else if (str.IsTwoByteString()) {
23472 NoSafepointScope no_safepoint;
23473 Add(TwoByteString::CharAddr(str, begin_index),
len);
23474 } else {
23476 }
23477}
void Add(uint16_t code_unit)
◆ Add() [2/4]
void dart::StringHasher::Add |
( |
const uint16_t * |
code_units, |
|
|
intptr_t |
len |
|
) |
| |
|
inline |
Definition at line 10509 of file object.h.
10509 {
10512 code_units++;
10514 }
10515 }
static T LoadUnaligned(const T *ptr)
◆ Add() [3/4]
void dart::StringHasher::Add |
( |
const uint8_t * |
code_units, |
|
|
intptr_t |
len |
|
) |
| |
|
inline |
Definition at line 10502 of file object.h.
10502 {
10505 code_units++;
10507 }
10508 }
◆ Add() [4/4]
void dart::StringHasher::Add |
( |
uint16_t |
code_unit | ) |
|
|
inline |
Definition at line 10501 of file object.h.
uint32_t CombineHashes(uint32_t hash, uint32_t other_hash)
◆ Finalize()
intptr_t dart::StringHasher::Finalize |
( |
| ) |
|
|
inline |
Definition at line 10517 of file object.h.
static constexpr intptr_t kHashBits
uint32_t FinalizeHash(uint32_t hash, intptr_t hashbits=kBitsPerInt32)
The documentation for this class was generated from the following files:
- third_party/dart-lang/sdk/runtime/vm/object.h
- third_party/dart-lang/sdk/runtime/vm/object.cc