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

#include <source-range-ast-visitor.h>

Inheritance diagram for v8::internal::SourceRangeAstVisitor:
Collaboration diagram for v8::internal::SourceRangeAstVisitor:

Public Member Functions

 SourceRangeAstVisitor (uintptr_t stack_limit, Expression *root, SourceRangeMap *source_range_map)
 
- Public Member Functions inherited from v8::internal::AstTraversalVisitor< SourceRangeAstVisitor >
 AstTraversalVisitor (Isolate *isolate, AstNode *root=nullptr)
 
 AstTraversalVisitor (uintptr_t stack_limit, AstNode *root=nullptr)
 
 AstTraversalVisitor (const AstTraversalVisitor &)=delete
 
AstTraversalVisitoroperator= (const AstTraversalVisitor &)=delete
 
void Run ()
 
bool VisitNode (AstNode *node)
 
bool VisitExpression (Expression *node)
 
void VisitDeclarations (Declaration::List *declarations)
 
void VisitStatements (const ZonePtrList< Statement > *statements)
 
- Public Member Functions inherited from v8::internal::AstVisitor< SourceRangeAstVisitor >
void Visit (AstNode *node)
 
void VisitDeclarations (Declaration::List *declarations)
 
void VisitStatements (const ZonePtrList< Statement > *statements)
 
void VisitExpressions (const ZonePtrList< Expression > *expressions)
 

Private Member Functions

void VisitBlock (Block *stmt)
 
void VisitSwitchStatement (SwitchStatement *stmt)
 
void VisitFunctionLiteral (FunctionLiteral *expr)
 
bool VisitNode (AstNode *node)
 
void VisitTryCatchStatement (TryCatchStatement *stmt)
 
void VisitTryFinallyStatement (TryFinallyStatement *stmt)
 
void MaybeRemoveContinuationRange (Statement *last_statement)
 
void MaybeRemoveLastContinuationRange (ZonePtrList< Statement > *stmts)
 
void MaybeRemoveContinuationRangeOfAsyncReturn (TryCatchStatement *stmt)
 

Private Attributes

SourceRangeMapsource_range_map_ = nullptr
 
std::unordered_set< int > continuation_positions_
 

Friends

class AstTraversalVisitor< SourceRangeAstVisitor >
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::AstTraversalVisitor< SourceRangeAstVisitor >
int depth () const
 
- Protected Member Functions inherited from v8::internal::AstVisitor< SourceRangeAstVisitor >
SourceRangeAstVisitorimpl ()
 

Detailed Description

Definition at line 27 of file source-range-ast-visitor.h.

Constructor & Destructor Documentation

◆ SourceRangeAstVisitor()

v8::internal::SourceRangeAstVisitor::SourceRangeAstVisitor ( uintptr_t stack_limit,
Expression * root,
SourceRangeMap * source_range_map )

Definition at line 12 of file source-range-ast-visitor.cc.

Member Function Documentation

◆ MaybeRemoveContinuationRange()

void v8::internal::SourceRangeAstVisitor::MaybeRemoveContinuationRange ( Statement * last_statement)
private

Definition at line 74 of file source-range-ast-visitor.cc.

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

◆ MaybeRemoveContinuationRangeOfAsyncReturn()

void v8::internal::SourceRangeAstVisitor::MaybeRemoveContinuationRangeOfAsyncReturn ( TryCatchStatement * stmt)
private

Definition at line 115 of file source-range-ast-visitor.cc.

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

◆ MaybeRemoveLastContinuationRange()

void v8::internal::SourceRangeAstVisitor::MaybeRemoveLastContinuationRange ( ZonePtrList< Statement > * stmts)
private

Definition at line 95 of file source-range-ast-visitor.cc.

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

◆ VisitBlock()

void v8::internal::SourceRangeAstVisitor::VisitBlock ( Block * stmt)
private

Definition at line 18 of file source-range-ast-visitor.cc.

Here is the call graph for this function:

◆ VisitFunctionLiteral()

void v8::internal::SourceRangeAstVisitor::VisitFunctionLiteral ( FunctionLiteral * expr)
private

Definition at line 36 of file source-range-ast-visitor.cc.

Here is the call graph for this function:

◆ VisitNode()

bool v8::internal::SourceRangeAstVisitor::VisitNode ( AstNode * node)
private

Definition at line 54 of file source-range-ast-visitor.cc.

Here is the call graph for this function:

◆ VisitSwitchStatement()

void v8::internal::SourceRangeAstVisitor::VisitSwitchStatement ( SwitchStatement * stmt)
private

Definition at line 28 of file source-range-ast-visitor.cc.

Here is the call graph for this function:

◆ VisitTryCatchStatement()

void v8::internal::SourceRangeAstVisitor::VisitTryCatchStatement ( TryCatchStatement * stmt)
private

Definition at line 42 of file source-range-ast-visitor.cc.

Here is the call graph for this function:

◆ VisitTryFinallyStatement()

void v8::internal::SourceRangeAstVisitor::VisitTryFinallyStatement ( TryFinallyStatement * stmt)
private

Definition at line 48 of file source-range-ast-visitor.cc.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ AstTraversalVisitor< SourceRangeAstVisitor >

Definition at line 30 of file source-range-ast-visitor.h.

Member Data Documentation

◆ continuation_positions_

std::unordered_set<int> v8::internal::SourceRangeAstVisitor::continuation_positions_
private

Definition at line 48 of file source-range-ast-visitor.h.

◆ source_range_map_

SourceRangeMap* v8::internal::SourceRangeAstVisitor::source_range_map_ = nullptr
private

Definition at line 47 of file source-range-ast-visitor.h.


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