#include <object.h>
Definition at line 10477 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 23540 of file object.cc.
23540 {
23541 ASSERT(begin_index >= 0);
23543 ASSERT((begin_index + len) <= str.Length());
23544 if (len == 0) {
23545 return;
23546 }
23547 if (str.IsOneByteString()) {
23548 NoSafepointScope no_safepoint;
23549 Add(OneByteString::CharAddr(str, begin_index), len);
23550 } else if (str.IsTwoByteString()) {
23551 NoSafepointScope no_safepoint;
23552 Add(TwoByteString::CharAddr(str, begin_index), len);
23553 } else {
23555 }
23556}
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 10488 of file object.h.
10488 {
10489 while (len > 0) {
10491 code_units++;
10493 }
10494 }
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 10481 of file object.h.
10481 {
10482 while (len > 0) {
10484 code_units++;
10486 }
10487 }
◆ Add() [4/4]
void dart::StringHasher::Add |
( |
uint16_t |
code_unit | ) |
|
|
inline |
Definition at line 10480 of file object.h.
uint32_t CombineHashes(uint32_t hash, uint32_t other_hash)
◆ Finalize()
intptr_t dart::StringHasher::Finalize |
( |
| ) |
|
|
inline |
Definition at line 10496 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