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

#include <ast-value-factory.h>

Inheritance diagram for v8::internal::AstRawString:
Collaboration diagram for v8::internal::AstRawString:

Public Member Functions

bool IsEmpty () const
 
int length () const
 
bool AsArrayIndex (uint32_t *index) const
 
bool IsIntegerIndex () const
 
V8_EXPORT_PRIVATE bool IsOneByteEqualTo (const char *data) const
 
uint16_t FirstCharacter () const
 
template<typename IsolateT >
void Internalize (IsolateT *isolate)
 
bool is_one_byte () const
 
int byte_length () const
 
const unsigned char * raw_data () const
 
bool IsPrivateName () const
 
uint32_t raw_hash_field () const
 
uint32_t Hash () const
 
V8_INLINE IndirectHandle< Stringstring () const
 
- Public Member Functions inherited from v8::internal::ZoneObject
void * operator new (size_t, Zone *)=delete
 
void * operator new (size_t size, void *ptr)
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)=delete
 

Static Public Member Functions

static bool Equal (const AstRawString *lhs, const AstRawString *rhs)
 
static int Compare (const AstRawString *lhs, const AstRawString *rhs)
 

Private Member Functions

 AstRawString (bool is_one_byte, base::Vector< const uint8_t > literal_bytes, uint32_t raw_hash_field)
 
AstRawStringnext ()
 
AstRawString ** next_location ()
 
void set_string (IndirectHandle< String > string)
 

Private Attributes

friend Zone
 
union { 
 
   AstRawString *   next_ 
 
   IndirectHandle< String >   string_ 
 
};  
 
base::Vector< const uint8_t > literal_bytes_
 
uint32_t raw_hash_field_
 
bool is_one_byte_
 

Friends

class AstRawStringInternalizationKey
 
class AstStringConstants
 
class AstValueFactory
 

Detailed Description

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

Constructor & Destructor Documentation

◆ AstRawString()

v8::internal::AstRawString::AstRawString ( bool is_one_byte,
base::Vector< const uint8_t > literal_bytes,
uint32_t raw_hash_field )
inlineprivate

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

Member Function Documentation

◆ AsArrayIndex()

bool v8::internal::AstRawString::AsArrayIndex ( uint32_t * index) const

◆ byte_length()

int v8::internal::AstRawString::byte_length ( ) const
inline

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

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

◆ Compare()

int v8::internal::AstRawString::Compare ( const AstRawString * lhs,
const AstRawString * rhs )
static

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

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

◆ Equal()

bool v8::internal::AstRawString::Equal ( const AstRawString * lhs,
const AstRawString * rhs )
static

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

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

◆ FirstCharacter()

uint16_t v8::internal::AstRawString::FirstCharacter ( ) const

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

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

◆ Hash()

uint32_t v8::internal::AstRawString::Hash ( ) const
inline

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

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

◆ Internalize()

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

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

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

◆ is_one_byte()

bool v8::internal::AstRawString::is_one_byte ( ) const
inline

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

Here is the caller graph for this function:

◆ IsEmpty()

bool v8::internal::AstRawString::IsEmpty ( ) const
inline

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

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

◆ IsIntegerIndex()

bool v8::internal::AstRawString::IsIntegerIndex ( ) const

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

Here is the call graph for this function:

◆ IsOneByteEqualTo()

bool v8::internal::AstRawString::IsOneByteEqualTo ( const char * data) const

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

Here is the call graph for this function:

◆ IsPrivateName()

bool v8::internal::AstRawString::IsPrivateName ( ) const
inline

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

Here is the call graph for this function:

◆ length()

int v8::internal::AstRawString::length ( ) const
inline

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

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

◆ next()

AstRawString * v8::internal::AstRawString::next ( )
inlineprivate

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

Here is the caller graph for this function:

◆ next_location()

AstRawString ** v8::internal::AstRawString::next_location ( )
inlineprivate

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

Here is the caller graph for this function:

◆ raw_data()

const unsigned char * v8::internal::AstRawString::raw_data ( ) const
inline

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

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

◆ raw_hash_field()

uint32_t v8::internal::AstRawString::raw_hash_field ( ) const
inline

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

◆ set_string()

void v8::internal::AstRawString::set_string ( IndirectHandle< String > string)
inlineprivate

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

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

◆ string()

V8_INLINE IndirectHandle< String > v8::internal::AstRawString::string ( ) const
inline

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

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ AstRawStringInternalizationKey

friend class AstRawStringInternalizationKey
friend

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

◆ AstStringConstants

friend class AstStringConstants
friend

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

◆ AstValueFactory

friend class AstValueFactory
friend

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

Member Data Documentation

◆ [union]

◆ is_one_byte_

bool v8::internal::AstRawString::is_one_byte_
private

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

◆ literal_bytes_

base::Vector<const uint8_t> v8::internal::AstRawString::literal_bytes_
private

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

◆ next_

AstRawString* v8::internal::AstRawString::next_

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

◆ raw_hash_field_

uint32_t v8::internal::AstRawString::raw_hash_field_
private

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

◆ string_

IndirectHandle<String> v8::internal::AstRawString::string_

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

◆ Zone

friend v8::internal::AstRawString::Zone
private

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


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