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

#include <string-escape-analysis-reducer.h>

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

Public Member Functions

 StringEscapeAnalyzer (const Graph &graph, Zone *phase_zone)
 
void Run ()
 
bool IsEscaping (OpIndex idx) const
 
bool ShouldReconstructFrameState (V< FrameState > idx)
 

Private Member Functions

void ProcessBlock (const Block &block)
 
void ProcessFrameState (V< FrameState > index, const FrameStateOp &framestate)
 
void MarkNextFrameStateInputAsEscaping (FrameStateData::Iterator *it)
 
void MarkAllInputsAsEscaping (const Operation &op)
 
void RecursivelyMarkAllStringConcatInputsAsEscaping (const StringConcatOp *concat)
 
void ReprocessStringConcats ()
 
void ComputeFrameStatesToReconstruct ()
 
void MarkAsEscaping (OpIndex index)
 
void RecursiveMarkAsShouldReconstruct (V< FrameState > idx)
 

Private Attributes

const Graphgraph_
 
Zonezone_
 
FixedOpIndexSidetable< boolescaping_operations_and_frame_states_to_reconstruct_
 
ZoneVector< V< String > > maybe_non_escaping_string_concats_
 
ZoneVector< V< FrameState > > maybe_to_reconstruct_frame_states_
 
uint32_t max_frame_state_input_count_ = 0
 

Detailed Description

Definition at line 31 of file string-escape-analysis-reducer.h.

Constructor & Destructor Documentation

◆ StringEscapeAnalyzer()

v8::internal::compiler::turboshaft::StringEscapeAnalyzer::StringEscapeAnalyzer ( const Graph & graph,
Zone * phase_zone )
inline

Definition at line 33 of file string-escape-analysis-reducer.h.

Member Function Documentation

◆ ComputeFrameStatesToReconstruct()

void v8::internal::compiler::turboshaft::StringEscapeAnalyzer::ComputeFrameStatesToReconstruct ( )
private

Definition at line 159 of file string-escape-analysis-reducer.cc.

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

◆ IsEscaping()

bool v8::internal::compiler::turboshaft::StringEscapeAnalyzer::IsEscaping ( OpIndex idx) const
inline

Definition at line 42 of file string-escape-analysis-reducer.h.

Here is the caller graph for this function:

◆ MarkAllInputsAsEscaping()

void v8::internal::compiler::turboshaft::StringEscapeAnalyzer::MarkAllInputsAsEscaping ( const Operation & op)
private

Definition at line 107 of file string-escape-analysis-reducer.cc.

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

◆ MarkAsEscaping()

void v8::internal::compiler::turboshaft::StringEscapeAnalyzer::MarkAsEscaping ( OpIndex index)
inlineprivate

Definition at line 64 of file string-escape-analysis-reducer.h.

Here is the caller graph for this function:

◆ MarkNextFrameStateInputAsEscaping()

void v8::internal::compiler::turboshaft::StringEscapeAnalyzer::MarkNextFrameStateInputAsEscaping ( FrameStateData::Iterator * it)
private

Definition at line 32 of file string-escape-analysis-reducer.cc.

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

◆ ProcessBlock()

void v8::internal::compiler::turboshaft::StringEscapeAnalyzer::ProcessBlock ( const Block & block)
private

Definition at line 79 of file string-escape-analysis-reducer.cc.

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

◆ ProcessFrameState()

void v8::internal::compiler::turboshaft::StringEscapeAnalyzer::ProcessFrameState ( V< FrameState > index,
const FrameStateOp & framestate )
private

Definition at line 55 of file string-escape-analysis-reducer.cc.

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

◆ RecursivelyMarkAllStringConcatInputsAsEscaping()

void v8::internal::compiler::turboshaft::StringEscapeAnalyzer::RecursivelyMarkAllStringConcatInputsAsEscaping ( const StringConcatOp * concat)
private

Definition at line 115 of file string-escape-analysis-reducer.cc.

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

◆ RecursiveMarkAsShouldReconstruct()

void v8::internal::compiler::turboshaft::StringEscapeAnalyzer::RecursiveMarkAsShouldReconstruct ( V< FrameState > idx)
inlineprivate

Definition at line 69 of file string-escape-analysis-reducer.h.

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

◆ ReprocessStringConcats()

void v8::internal::compiler::turboshaft::StringEscapeAnalyzer::ReprocessStringConcats ( )
private

Definition at line 134 of file string-escape-analysis-reducer.cc.

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

◆ Run()

void v8::internal::compiler::turboshaft::StringEscapeAnalyzer::Run ( )

Definition at line 15 of file string-escape-analysis-reducer.cc.

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

◆ ShouldReconstructFrameState()

bool v8::internal::compiler::turboshaft::StringEscapeAnalyzer::ShouldReconstructFrameState ( V< FrameState > idx)
inline

Definition at line 47 of file string-escape-analysis-reducer.h.

Here is the caller graph for this function:

Member Data Documentation

◆ escaping_operations_and_frame_states_to_reconstruct_

FixedOpIndexSidetable<bool> v8::internal::compiler::turboshaft::StringEscapeAnalyzer::escaping_operations_and_frame_states_to_reconstruct_
private

Definition at line 89 of file string-escape-analysis-reducer.h.

◆ graph_

const Graph& v8::internal::compiler::turboshaft::StringEscapeAnalyzer::graph_
private

Definition at line 52 of file string-escape-analysis-reducer.h.

◆ max_frame_state_input_count_

uint32_t v8::internal::compiler::turboshaft::StringEscapeAnalyzer::max_frame_state_input_count_ = 0
private

Definition at line 101 of file string-escape-analysis-reducer.h.

◆ maybe_non_escaping_string_concats_

ZoneVector<V<String> > v8::internal::compiler::turboshaft::StringEscapeAnalyzer::maybe_non_escaping_string_concats_
private

Definition at line 97 of file string-escape-analysis-reducer.h.

◆ maybe_to_reconstruct_frame_states_

ZoneVector<V<FrameState> > v8::internal::compiler::turboshaft::StringEscapeAnalyzer::maybe_to_reconstruct_frame_states_
private

Definition at line 99 of file string-escape-analysis-reducer.h.

◆ zone_

Zone* v8::internal::compiler::turboshaft::StringEscapeAnalyzer::zone_
private

Definition at line 53 of file string-escape-analysis-reducer.h.


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