v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::JsonStringifier::SimplePropertyKeyCache Class Reference
Collaboration diagram for v8::internal::JsonStringifier::SimplePropertyKeyCache:

Public Member Functions

 SimplePropertyKeyCache (Isolate *isolate)
 
 ~SimplePropertyKeyCache ()
 
void TryInsert (Tagged< String > string)
 
bool Contains (Tagged< String > string)
 

Private Member Functions

size_t GetIndex (Tagged< String > string)
 
Tagged_t MaybeCompress (Tagged< String > string)
 
void Clear ()
 

Static Private Member Functions

static void UpdatePointersCallback (void *cache)
 

Private Attributes

Isolateisolate_
 
Tagged_t keys_ [kSize]
 

Static Private Attributes

static constexpr size_t kSizeBits = 6
 
static constexpr size_t kSize = 1 << kSizeBits
 
static constexpr size_t kIndexMask = kSize - 1
 

Detailed Description

Definition at line 337 of file json-stringifier.cc.

Constructor & Destructor Documentation

◆ SimplePropertyKeyCache()

v8::internal::JsonStringifier::SimplePropertyKeyCache::SimplePropertyKeyCache ( Isolate * isolate)
inlineexplicit

Definition at line 339 of file json-stringifier.cc.

Here is the call graph for this function:

◆ ~SimplePropertyKeyCache()

v8::internal::JsonStringifier::SimplePropertyKeyCache::~SimplePropertyKeyCache ( )
inline

Definition at line 345 of file json-stringifier.cc.

Here is the call graph for this function:

Member Function Documentation

◆ Clear()

void v8::internal::JsonStringifier::SimplePropertyKeyCache::Clear ( )
inlineprivate

Definition at line 374 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Contains()

bool v8::internal::JsonStringifier::SimplePropertyKeyCache::Contains ( Tagged< String > string)
inline

Definition at line 357 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetIndex()

size_t v8::internal::JsonStringifier::SimplePropertyKeyCache::GetIndex ( Tagged< String > string)
inlineprivate

Definition at line 362 of file json-stringifier.cc.

Here is the caller graph for this function:

◆ MaybeCompress()

Tagged_t v8::internal::JsonStringifier::SimplePropertyKeyCache::MaybeCompress ( Tagged< String > string)
inlineprivate

Definition at line 368 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TryInsert()

void v8::internal::JsonStringifier::SimplePropertyKeyCache::TryInsert ( Tagged< String > string)
inline

Definition at line 350 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UpdatePointersCallback()

static void v8::internal::JsonStringifier::SimplePropertyKeyCache::UpdatePointersCallback ( void * cache)
inlinestaticprivate

Definition at line 376 of file json-stringifier.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ isolate_

Isolate* v8::internal::JsonStringifier::SimplePropertyKeyCache::isolate_
private

Definition at line 384 of file json-stringifier.cc.

◆ keys_

Tagged_t v8::internal::JsonStringifier::SimplePropertyKeyCache::keys_[kSize]
private

Definition at line 385 of file json-stringifier.cc.

◆ kIndexMask

size_t v8::internal::JsonStringifier::SimplePropertyKeyCache::kIndexMask = kSize - 1
staticconstexprprivate

Definition at line 382 of file json-stringifier.cc.

◆ kSize

size_t v8::internal::JsonStringifier::SimplePropertyKeyCache::kSize = 1 << kSizeBits
staticconstexprprivate

Definition at line 381 of file json-stringifier.cc.

◆ kSizeBits

size_t v8::internal::JsonStringifier::SimplePropertyKeyCache::kSizeBits = 6
staticconstexprprivate

Definition at line 380 of file json-stringifier.cc.


The documentation for this class was generated from the following file: