![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <name.h>
Public Types | |
enum class | HashFieldType : uint32_t { kHash = 0b10 , kIntegerIndex = 0b00 , kForwardingIndex = 0b01 , kEmpty = 0b11 } |
using | HashFieldTypeBits = base::BitField<HashFieldType, 0, 2> |
using | HashBits |
using | IsInternalizedForwardingIndexBit = HashFieldTypeBits::Next<bool, 1> |
using | IsExternalForwardingIndexBit |
using | ForwardingIndexValueBits |
using | ArrayIndexValueBits |
using | ArrayIndexLengthBits |
Static Public Member Functions | |
static bool | Equals (Isolate *isolate, DirectHandle< Name > one, DirectHandle< Name > two) |
static bool | ContainsCachedArrayIndex (uint32_t hash) |
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< String > | ToFunctionName (Isolate *isolate, DirectHandle< Name > name) |
static V8_WARN_UNUSED_RESULT MaybeDirectHandle< String > | ToFunctionName (Isolate *isolate, DirectHandle< Name > name, DirectHandle< String > prefix) |
static bool | IsHashFieldComputed (uint32_t raw_hash_field) |
static bool | IsHash (uint32_t raw_hash_field) |
static bool | IsIntegerIndex (uint32_t raw_hash_field) |
static bool | IsForwardingIndex (uint32_t raw_hash_field) |
static bool | IsInternalizedForwardingIndex (uint32_t raw_hash_field) |
static bool | IsExternalForwardingIndex (uint32_t raw_hash_field) |
static uint32_t | CreateHashFieldValue (uint32_t hash, HashFieldType type) |
static uint32_t | CreateInternalizedForwardingIndex (uint32_t index) |
static uint32_t | CreateExternalForwardingIndex (uint32_t index) |
Static Public Attributes | |
static constexpr int | kHashNotComputedMask = 1 |
static constexpr int | kEmptyHashField |
static const int | kMaxCachedArrayIndexLength = 7 |
static const uint32_t | kMaxArrayIndex = kMaxUInt32 - 1 |
static const int | kMaxArrayIndexSize = 10 |
static const int | kMaxIntegerIndexSize |
static const int | kArrayIndexValueBits = 24 |
static const int | kArrayIndexLengthBits |
static const unsigned int | kDoesNotContainCachedArrayIndexMask |
static const unsigned int | kDoesNotContainIntegerOrForwardingIndexMask = 0b10 |
Private Member Functions | |
uint32_t | GetRawHashFromForwardingTable (uint32_t raw_hash) const |
Private Attributes | |
std::atomic_uint32_t | raw_hash_field_ |
Friends | |
class | V8HeapExplorer |
class | CodeStubAssembler |
class | StringBuiltinsAssembler |
class | SandboxTesting |
class | maglev::MaglevGraphBuilder |
class | maglev::MaglevAssembler |
class | compiler::AccessBuilder |
class | compiler::WasmGraphBuilder |
class | TorqueGeneratedNameAsserts |
using v8::internal::Name::HashFieldTypeBits = base::BitField<HashFieldType, 0, 2> |
|
strong |
|
inline |
Definition at line 281 of file name-inl.h.
|
inlinestatic |
Definition at line 290 of file name-inl.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 132 of file name-inl.h.
|
inlinestatic |
|
inline |
|
inline |
|
inline |
Definition at line 175 of file name-inl.h.
|
inline |
|
inlinestatic |
Definition at line 76 of file name-inl.h.
|
inlineprivate |
Definition at line 167 of file name-inl.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Definition at line 125 of file name-inl.h.
|
inlinestatic |
Definition at line 112 of file name-inl.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 96 of file name-inl.h.
|
inlinestatic |
Definition at line 106 of file name-inl.h.
|
inlinestatic |
Definition at line 118 of file name-inl.h.
|
inline |
Definition at line 258 of file name-inl.h.
|
inline |
|
inline |
Definition at line 262 of file name-inl.h.
void v8::internal::Name::NameShortPrint | ( | ) |
int v8::internal::Name::NameShortPrint | ( | base::Vector< char > | str | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
Definition at line 4049 of file objects.cc.
|
static |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
static |
|
static |
|
static |
|
static |
|
staticconstexpr |
|
staticconstexpr |
|
static |
|
static |
|
static |
|
private |