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

#include <ast-value-factory.h>

Collaboration diagram for v8::internal::AstValueFactory:

Public Member Functions

 AstValueFactory (Zone *zone, const AstStringConstants *string_constants, uint64_t hash_seed)
 
 AstValueFactory (Zone *ast_raw_string_zone, Zone *single_parse_zone, const AstStringConstants *string_constants, uint64_t hash_seed)
 
Zoneast_raw_string_zone () const
 
Zonesingle_parse_zone () const
 
const AstRawStringGetOneByteString (base::Vector< const uint8_t > literal)
 
const AstRawStringGetOneByteString (const char *string)
 
const AstRawStringGetTwoByteString (base::Vector< const uint16_t > literal)
 
const AstRawStringGetString (Tagged< String > literal, const SharedStringAccessGuardIfNeeded &)
 
V8_EXPORT_PRIVATE AstConsStringNewConsString ()
 
V8_EXPORT_PRIVATE AstConsStringNewConsString (const AstRawString *str)
 
V8_EXPORT_PRIVATE AstConsStringNewConsString (const AstRawString *str1, const AstRawString *str2)
 
template<typename IsolateT >
void Internalize (IsolateT *isolate)
 
AstConsStringempty_cons_string () const
 

Private Member Functions

AstRawStringAddString (AstRawString *string)
 
void ResetStrings ()
 
V8_EXPORT_PRIVATE const AstRawStringGetOneByteStringInternal (base::Vector< const uint8_t > literal)
 
const AstRawStringGetTwoByteStringInternal (base::Vector< const uint16_t > literal)
 
const AstRawStringGetString (uint32_t raw_hash_field, bool is_one_byte, base::Vector< const uint8_t > literal_bytes)
 

Private Attributes

AstRawStringMap string_table_
 
AstRawStringstrings_
 
AstRawString ** strings_end_
 
const AstStringConstantsstring_constants_
 
AstConsStringempty_cons_string_
 
Zoneast_raw_string_zone_
 
Zonesingle_parse_zone_
 
uint64_t hash_seed_
 

Detailed Description

Definition at line 339 of file ast-value-factory.h.

Constructor & Destructor Documentation

◆ AstValueFactory() [1/2]

v8::internal::AstValueFactory::AstValueFactory ( Zone * zone,
const AstStringConstants * string_constants,
uint64_t hash_seed )
inline

Definition at line 341 of file ast-value-factory.h.

◆ AstValueFactory() [2/2]

v8::internal::AstValueFactory::AstValueFactory ( Zone * ast_raw_string_zone,
Zone * single_parse_zone,
const AstStringConstants * string_constants,
uint64_t hash_seed )
inline

Definition at line 345 of file ast-value-factory.h.

Here is the call graph for this function:

Member Function Documentation

◆ AddString()

AstRawString * v8::internal::AstValueFactory::AddString ( AstRawString * string)
inlineprivate

Definition at line 406 of file ast-value-factory.h.

Here is the call graph for this function:

◆ ast_raw_string_zone()

Zone * v8::internal::AstValueFactory::ast_raw_string_zone ( ) const
inline

Definition at line 366 of file ast-value-factory.h.

◆ empty_cons_string()

AstConsString * v8::internal::AstValueFactory::empty_cons_string ( ) const
inline

Definition at line 403 of file ast-value-factory.h.

Here is the caller graph for this function:

◆ GetOneByteString() [1/2]

const AstRawString * v8::internal::AstValueFactory::GetOneByteString ( base::Vector< const uint8_t > literal)
inline

Definition at line 376 of file ast-value-factory.h.

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

◆ GetOneByteString() [2/2]

const AstRawString * v8::internal::AstValueFactory::GetOneByteString ( const char * string)
inline

Definition at line 379 of file ast-value-factory.h.

Here is the call graph for this function:

◆ GetOneByteStringInternal()

const AstRawString * v8::internal::AstValueFactory::GetOneByteStringInternal ( base::Vector< const uint8_t > literal)
private

Definition at line 322 of file ast-value-factory.cc.

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

◆ GetString() [1/2]

const AstRawString * v8::internal::AstValueFactory::GetString ( Tagged< String > literal,
const SharedStringAccessGuardIfNeeded & access_guard )

Definition at line 343 of file ast-value-factory.cc.

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

◆ GetString() [2/2]

const AstRawString * v8::internal::AstValueFactory::GetString ( uint32_t raw_hash_field,
bool is_one_byte,
base::Vector< const uint8_t > literal_bytes )
private

◆ GetTwoByteString()

const AstRawString * v8::internal::AstValueFactory::GetTwoByteString ( base::Vector< const uint16_t > literal)
inline

Definition at line 382 of file ast-value-factory.h.

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

◆ GetTwoByteStringInternal()

const AstRawString * v8::internal::AstValueFactory::GetTwoByteStringInternal ( base::Vector< const uint16_t > literal)
private

Definition at line 335 of file ast-value-factory.cc.

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

◆ Internalize()

template<typename IsolateT >
void v8::internal::AstValueFactory::Internalize ( IsolateT * isolate)

Definition at line 374 of file ast-value-factory.cc.

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

◆ NewConsString() [1/3]

AstConsString * v8::internal::AstValueFactory::NewConsString ( )

Definition at line 358 of file ast-value-factory.cc.

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

◆ NewConsString() [2/3]

AstConsString * v8::internal::AstValueFactory::NewConsString ( const AstRawString * str)

Definition at line 362 of file ast-value-factory.cc.

Here is the call graph for this function:

◆ NewConsString() [3/3]

AstConsString * v8::internal::AstValueFactory::NewConsString ( const AstRawString * str1,
const AstRawString * str2 )

Definition at line 366 of file ast-value-factory.cc.

Here is the call graph for this function:

◆ ResetStrings()

void v8::internal::AstValueFactory::ResetStrings ( )
inlineprivate

Definition at line 411 of file ast-value-factory.h.

Here is the caller graph for this function:

◆ single_parse_zone()

Zone * v8::internal::AstValueFactory::single_parse_zone ( ) const
inline

Definition at line 371 of file ast-value-factory.h.

Here is the caller graph for this function:

Member Data Documentation

◆ ast_raw_string_zone_

Zone* v8::internal::AstValueFactory::ast_raw_string_zone_
private

Definition at line 433 of file ast-value-factory.h.

◆ empty_cons_string_

AstConsString* v8::internal::AstValueFactory::empty_cons_string_
private

Definition at line 431 of file ast-value-factory.h.

◆ hash_seed_

uint64_t v8::internal::AstValueFactory::hash_seed_
private

Definition at line 436 of file ast-value-factory.h.

◆ single_parse_zone_

Zone* v8::internal::AstValueFactory::single_parse_zone_
private

Definition at line 434 of file ast-value-factory.h.

◆ string_constants_

const AstStringConstants* v8::internal::AstValueFactory::string_constants_
private

Definition at line 429 of file ast-value-factory.h.

◆ string_table_

AstRawStringMap v8::internal::AstValueFactory::string_table_
private

Definition at line 423 of file ast-value-factory.h.

◆ strings_

AstRawString* v8::internal::AstValueFactory::strings_
private

Definition at line 425 of file ast-value-factory.h.

◆ strings_end_

AstRawString** v8::internal::AstValueFactory::strings_end_
private

Definition at line 426 of file ast-value-factory.h.


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