v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
string-table-inl.h
Go to the documentation of this file.
1
// Copyright 2018 the V8 project authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef V8_OBJECTS_STRING_TABLE_INL_H_
6
#define V8_OBJECTS_STRING_TABLE_INL_H_
7
8
#include "
src/objects/string-table.h
"
9
// Include the non-inl header before the rest of the headers.
10
11
// Has to be the last include (doesn't have include guards):
12
#include "
src/objects/object-macros.h
"
13
14
namespace
v8
{
15
namespace
internal
{
16
17
StringTableKey::StringTableKey
(uint32_t raw_hash_field, uint32_t length)
18
: raw_hash_field_(raw_hash_field),
length_
(length) {}
19
20
void
StringTableKey::set_raw_hash_field
(uint32_t raw_hash_field) {
21
raw_hash_field_
=
raw_hash_field
;
22
}
23
24
uint32_t
StringTableKey::hash
()
const
{
25
return
Name::HashBits::decode
(
raw_hash_field_
);
26
}
27
28
}
// namespace internal
29
}
// namespace v8
30
31
#include "
src/objects/object-macros-undef.h
"
32
33
#endif
// V8_OBJECTS_STRING_TABLE_INL_H_
v8::base::BitField::decode
static constexpr T decode(U value)
Definition
bit-field.h:66
v8::internal::StringTableKey::hash
uint32_t hash() const
Definition
string-table-inl.h:24
v8::internal::StringTableKey::raw_hash_field
uint32_t raw_hash_field() const
Definition
string-table.h:25
v8::internal::StringTableKey::set_raw_hash_field
void set_raw_hash_field(uint32_t raw_hash_field)
Definition
string-table-inl.h:20
v8::internal::StringTableKey::raw_hash_field_
uint32_t raw_hash_field_
Definition
string-table.h:37
v8::internal::StringTableKey::StringTableKey
StringTableKey(uint32_t raw_hash_field, uint32_t length)
Definition
string-table-inl.h:17
length_
const int length_
Definition
mul-fft.cc:473
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
object-macros-undef.h
object-macros.h
string-table.h
src
objects
string-table-inl.h
Generated on Sun Apr 6 2025 21:08:56 for v8 by
1.12.0