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

#include <string-view.h>

Collaboration diagram for v8::internal::compiler::turboshaft::StringView:

Public Types

using value_type = V<Word32>
 
using iterator_type = V<WordPtr>
 

Public Member Functions

 StringView (const DisallowGarbageCollection &can_rely_on_no_gc, V< String > string, String::Encoding encoding, ConstOrV< WordPtr > start_index=0, ConstOrV< WordPtr > character_count=V< WordPtr >::Invalid())
 
 StringView (V< String > string, String::Encoding encoding, ConstOrV< WordPtr > start_index=0, ConstOrV< WordPtr > character_count=V< WordPtr >::Invalid())
 
template<typename A >
iterator_type Begin (A &assembler)
 
template<typename A >
OptionalV< Word32IsEnd (A &assembler, iterator_type current_iterator) const
 
template<typename A >
iterator_type Advance (A &assembler, iterator_type current_iterator) const
 
template<typename A >
value_type Dereference (A &assembler, iterator_type current_iterator) const
 

Private Attributes

V< Stringstring_
 
String::Encoding encoding_
 
ConstOrV< WordPtrstart_index_
 
ConstOrV< WordPtrcharacter_count_
 
V< WordPtrend_offset_
 
const DisallowGarbageCollectioncan_rely_on_no_gc_
 

Detailed Description

Definition at line 14 of file string-view.h.

Member Typedef Documentation

◆ iterator_type

◆ value_type

Constructor & Destructor Documentation

◆ StringView() [1/2]

v8::internal::compiler::turboshaft::StringView::StringView ( const DisallowGarbageCollection & can_rely_on_no_gc,
V< String > string,
String::Encoding encoding,
ConstOrV< WordPtr > start_index = 0,
ConstOrV< WordPtr > character_count = V<WordPtr>::Invalid() )
inline

Definition at line 19 of file string-view.h.

◆ StringView() [2/2]

v8::internal::compiler::turboshaft::StringView::StringView ( V< String > string,
String::Encoding encoding,
ConstOrV< WordPtr > start_index = 0,
ConstOrV< WordPtr > character_count = V<WordPtr>::Invalid() )
inline

Definition at line 29 of file string-view.h.

Member Function Documentation

◆ Advance()

template<typename A >
iterator_type v8::internal::compiler::turboshaft::StringView::Advance ( A & assembler,
iterator_type current_iterator ) const
inline

Definition at line 75 of file string-view.h.

◆ Begin()

template<typename A >
iterator_type v8::internal::compiler::turboshaft::StringView::Begin ( A & assembler)
inline

Definition at line 39 of file string-view.h.

Here is the call graph for this function:

◆ Dereference()

template<typename A >
value_type v8::internal::compiler::turboshaft::StringView::Dereference ( A & assembler,
iterator_type current_iterator ) const
inline

Definition at line 81 of file string-view.h.

Here is the call graph for this function:

◆ IsEnd()

template<typename A >
OptionalV< Word32 > v8::internal::compiler::turboshaft::StringView::IsEnd ( A & assembler,
iterator_type current_iterator ) const
inline

Definition at line 70 of file string-view.h.

Member Data Documentation

◆ can_rely_on_no_gc_

const DisallowGarbageCollection* v8::internal::compiler::turboshaft::StringView::can_rely_on_no_gc_
private

Definition at line 95 of file string-view.h.

◆ character_count_

ConstOrV<WordPtr> v8::internal::compiler::turboshaft::StringView::character_count_
private

Definition at line 93 of file string-view.h.

◆ encoding_

String::Encoding v8::internal::compiler::turboshaft::StringView::encoding_
private

Definition at line 91 of file string-view.h.

◆ end_offset_

V<WordPtr> v8::internal::compiler::turboshaft::StringView::end_offset_
private

Definition at line 94 of file string-view.h.

◆ start_index_

ConstOrV<WordPtr> v8::internal::compiler::turboshaft::StringView::start_index_
private

Definition at line 92 of file string-view.h.

◆ string_

V<String> v8::internal::compiler::turboshaft::StringView::string_
private

Definition at line 90 of file string-view.h.


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