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

#include <heap-refs.h>

Inheritance diagram for v8::internal::compiler::StringRef:
Collaboration diagram for v8::internal::compiler::StringRef:

Public Member Functions

IndirectHandle< Stringobject () const
 
OptionalObjectRef GetCharAsStringOrUndefined (JSHeapBroker *broker, uint32_t index) const
 
std::optional< Handle< String > > ObjectIfContentAccessible (JSHeapBroker *broker)
 
uint32_t length () const
 
std::optional< uint16_t > GetFirstChar (JSHeapBroker *broker) const
 
std::optional< uint16_t > GetChar (JSHeapBroker *broker, uint32_t index) const
 
std::optional< double > ToNumber (JSHeapBroker *broker)
 
std::optional< double > ToInt (JSHeapBroker *broker, int radix)
 
bool IsSeqString () const
 
bool IsExternalString () const
 
bool IsContentAccessible () const
 
bool IsOneByteRepresentation () const
 
- Public Member Functions inherited from v8::internal::compiler::NameRef
IndirectHandle< Nameobject () const
 
bool IsUniqueName () const
 
- Public Member Functions inherited from v8::internal::compiler::HeapObjectRef
IndirectHandle< HeapObjectobject () const
 
V8_EXPORT_PRIVATE MapRef map (JSHeapBroker *broker) const
 
OptionalMapRef map_direct_read (JSHeapBroker *broker) const
 
HeapObjectType GetHeapObjectType (JSHeapBroker *broker) const
 

Private Member Functions

bool SupportedStringKind () const
 

Detailed Description

Definition at line 1145 of file heap-refs.h.

Member Function Documentation

◆ GetChar()

std::optional< uint16_t > v8::internal::compiler::StringRef::GetChar ( JSHeapBroker * broker,
uint32_t index ) const

Definition at line 1448 of file heap-refs.cc.

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

◆ GetCharAsStringOrUndefined()

OptionalObjectRef v8::internal::compiler::StringRef::GetCharAsStringOrUndefined ( JSHeapBroker * broker,
uint32_t index ) const

Definition at line 1399 of file heap-refs.cc.

Here is the call graph for this function:

◆ GetFirstChar()

std::optional< uint16_t > v8::internal::compiler::StringRef::GetFirstChar ( JSHeapBroker * broker) const

Definition at line 1444 of file heap-refs.cc.

Here is the call graph for this function:

◆ IsContentAccessible()

bool v8::internal::compiler::StringRef::IsContentAccessible ( ) const

Definition at line 1420 of file heap-refs.cc.

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

◆ IsExternalString()

bool v8::internal::compiler::StringRef::IsExternalString ( ) const

Definition at line 1892 of file heap-refs.cc.

Here is the caller graph for this function:

◆ IsOneByteRepresentation()

bool v8::internal::compiler::StringRef::IsOneByteRepresentation ( ) const

Definition at line 1424 of file heap-refs.cc.

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

◆ IsSeqString()

bool v8::internal::compiler::StringRef::IsSeqString ( ) const

Definition at line 1908 of file heap-refs.cc.

Here is the caller graph for this function:

◆ length()

uint32_t v8::internal::compiler::StringRef::length ( ) const

Definition at line 1442 of file heap-refs.cc.

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

◆ object()

IndirectHandle< String > v8::internal::compiler::StringRef::object ( ) const
Here is the caller graph for this function:

◆ ObjectIfContentAccessible()

std::optional< Handle< String > > v8::internal::compiler::StringRef::ObjectIfContentAccessible ( JSHeapBroker * broker)

Definition at line 1430 of file heap-refs.cc.

Here is the call graph for this function:

◆ SupportedStringKind()

bool v8::internal::compiler::StringRef::SupportedStringKind ( ) const
private

Definition at line 1416 of file heap-refs.cc.

Here is the caller graph for this function:

◆ ToInt()

std::optional< double > v8::internal::compiler::StringRef::ToInt ( JSHeapBroker * broker,
int radix )

Definition at line 1477 of file heap-refs.cc.

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

◆ ToNumber()

std::optional< double > v8::internal::compiler::StringRef::ToNumber ( JSHeapBroker * broker)

Definition at line 1466 of file heap-refs.cc.

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

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