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

#include <strings-storage.h>

Collaboration diagram for v8::internal::StringsStorage:

Public Member Functions

 StringsStorage ()
 
 ~StringsStorage ()
 
 StringsStorage (const StringsStorage &)=delete
 
StringsStorageoperator= (const StringsStorage &)=delete
 
const char * GetCopy (const char *src)
 
 PRINTF_FORMAT (2, 3) const char *GetFormatted(const char *format
 
const char * GetName (Tagged< Name > name)
 
const char * GetName (int index)
 
const char * GetConsName (const char *prefix, Tagged< Name > name)
 
bool Release (const char *str)
 
size_t GetStringCountForTesting () const
 
size_t GetStringSize ()
 
bool empty () const
 

Private Member Functions

const char * AddOrDisposeString (char *str, size_t len)
 
base::CustomMatcherHashMap::EntryGetEntry (const char *str, size_t len)
 
const char * GetVFormatted (const char *format, va_list args)
 
const char * GetSymbol (Tagged< Symbol > sym)
 

Static Private Member Functions

static bool StringsMatch (void *key1, void *key2)
 

Private Attributes

base::CustomMatcherHashMap names_
 
base::Mutex mutex_
 
size_t string_size_ = 0
 

Detailed Description

Definition at line 23 of file strings-storage.h.

Constructor & Destructor Documentation

◆ StringsStorage() [1/2]

v8::internal::StringsStorage::StringsStorage ( )

Definition at line 22 of file strings-storage.cc.

◆ ~StringsStorage()

v8::internal::StringsStorage::~StringsStorage ( )

Definition at line 24 of file strings-storage.cc.

Here is the call graph for this function:

◆ StringsStorage() [2/2]

v8::internal::StringsStorage::StringsStorage ( const StringsStorage & )
delete

Member Function Documentation

◆ AddOrDisposeString()

const char * v8::internal::StringsStorage::AddOrDisposeString ( char * str,
size_t len )
private

Definition at line 55 of file strings-storage.cc.

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

◆ empty()

bool v8::internal::StringsStorage::empty ( ) const
inline

Definition at line 54 of file strings-storage.h.

Here is the caller graph for this function:

◆ GetConsName()

const char * v8::internal::StringsStorage::GetConsName ( const char * prefix,
Tagged< Name > name )

Definition at line 116 of file strings-storage.cc.

Here is the call graph for this function:

◆ GetCopy()

const char * v8::internal::StringsStorage::GetCopy ( const char * src)

Definition at line 31 of file strings-storage.cc.

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

◆ GetEntry()

base::HashMap::Entry * v8::internal::StringsStorage::GetEntry ( const char * str,
size_t len )
private

Definition at line 181 of file strings-storage.cc.

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

◆ GetName() [1/2]

const char * v8::internal::StringsStorage::GetName ( int index)

Definition at line 112 of file strings-storage.cc.

◆ GetName() [2/2]

const char * v8::internal::StringsStorage::GetName ( Tagged< Name > name)

Definition at line 98 of file strings-storage.cc.

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

◆ GetStringCountForTesting()

size_t v8::internal::StringsStorage::GetStringCountForTesting ( ) const

Definition at line 172 of file strings-storage.cc.

Here is the call graph for this function:

◆ GetStringSize()

size_t v8::internal::StringsStorage::GetStringSize ( )

Definition at line 176 of file strings-storage.cc.

Here is the caller graph for this function:

◆ GetSymbol()

const char * v8::internal::StringsStorage::GetSymbol ( Tagged< Symbol > sym)
private

Definition at line 80 of file strings-storage.cc.

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

◆ GetVFormatted()

const char * v8::internal::StringsStorage::GetVFormatted ( const char * format,
va_list args )
private

Definition at line 70 of file strings-storage.cc.

Here is the call graph for this function:

◆ operator=()

StringsStorage & v8::internal::StringsStorage::operator= ( const StringsStorage & )
delete

◆ PRINTF_FORMAT()

v8::internal::StringsStorage::PRINTF_FORMAT ( 2 ,
3  ) const

◆ Release()

bool v8::internal::StringsStorage::Release ( const char * str)

Definition at line 147 of file strings-storage.cc.

Here is the call graph for this function:

◆ StringsMatch()

bool v8::internal::StringsStorage::StringsMatch ( void * key1,
void * key2 )
staticprivate

Definition at line 17 of file strings-storage.cc.

Member Data Documentation

◆ mutex_

base::Mutex v8::internal::StringsStorage::mutex_
private

Definition at line 67 of file strings-storage.h.

◆ names_

base::CustomMatcherHashMap v8::internal::StringsStorage::names_
private

Definition at line 66 of file strings-storage.h.

◆ string_size_

size_t v8::internal::StringsStorage::string_size_ = 0
private

Definition at line 68 of file strings-storage.h.


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