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

#include <ast.h>

Inheritance diagram for v8::internal::ReturnStatement:
Collaboration diagram for v8::internal::ReturnStatement:

Public Types

enum  Type { kNormal , kAsyncReturn , kSyntheticAsyncReturn }
 
- Public Types inherited from v8::internal::AstNode
enum  NodeType : uint8_t
 

Public Member Functions

Expressionexpression () const
 
Type type () const
 
bool is_async_return () const
 
bool is_synthetic_async_return () const
 
int end_position () const
 
- Public Member Functions inherited from v8::internal::AstNode
NodeType node_type () const
 
int position () const
 
IterationStatementAsIterationStatement ()
 
MaterializedLiteralAsMaterializedLiteral ()
 
- 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 Attributes

static constexpr int kFunctionLiteralReturnPosition = -2
 

Private Types

using TypeField = JumpStatement::NextBitField<Type, 2>
 

Private Member Functions

 ReturnStatement (Expression *expression, Type type, int pos, int end_position)
 

Private Attributes

friend Zone
 
Expressionexpression_
 
int end_position_
 

Friends

class AstNodeFactory
 

Additional Inherited Members

- Protected Types inherited from v8::internal::AstNode
template<class T , int size>
using NextBitField = NodeTypeField::Next<T, size>
 
- Protected Member Functions inherited from v8::internal::JumpStatement
 JumpStatement (int pos, NodeType type)
 
- Protected Member Functions inherited from v8::internal::Statement
 Statement (int position, NodeType type)
 
- Protected Member Functions inherited from v8::internal::AstNode
 AstNode (int position, NodeType type)
 
- Protected Attributes inherited from v8::internal::AstNode
uint32_t bit_field_
 

Detailed Description

Definition at line 653 of file ast.h.

Member Typedef Documentation

◆ TypeField

Definition at line 685 of file ast.h.

Member Enumeration Documentation

◆ Type

Enumerator
kNormal 
kAsyncReturn 
kSyntheticAsyncReturn 

Definition at line 655 of file ast.h.

Constructor & Destructor Documentation

◆ ReturnStatement()

v8::internal::ReturnStatement::ReturnStatement ( Expression * expression,
Type type,
int pos,
int end_position )
inlineprivate

Definition at line 675 of file ast.h.

Here is the call graph for this function:

Member Function Documentation

◆ end_position()

int v8::internal::ReturnStatement::end_position ( ) const
inline

Definition at line 669 of file ast.h.

◆ expression()

Expression * v8::internal::ReturnStatement::expression ( ) const
inline

Definition at line 656 of file ast.h.

◆ is_async_return()

bool v8::internal::ReturnStatement::is_async_return ( ) const
inline

Definition at line 659 of file ast.h.

Here is the call graph for this function:

◆ is_synthetic_async_return()

bool v8::internal::ReturnStatement::is_synthetic_async_return ( ) const
inline

Definition at line 660 of file ast.h.

Here is the call graph for this function:

◆ type()

Type v8::internal::ReturnStatement::type ( ) const
inline

Definition at line 658 of file ast.h.

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

Friends And Related Symbol Documentation

◆ AstNodeFactory

friend class AstNodeFactory
friend

Definition at line 672 of file ast.h.

Member Data Documentation

◆ end_position_

int v8::internal::ReturnStatement::end_position_
private

Definition at line 683 of file ast.h.

◆ expression_

Expression* v8::internal::ReturnStatement::expression_
private

Definition at line 682 of file ast.h.

◆ kFunctionLiteralReturnPosition

int v8::internal::ReturnStatement::kFunctionLiteralReturnPosition = -2
staticconstexpr

Definition at line 666 of file ast.h.

◆ Zone

friend v8::internal::ReturnStatement::Zone
private

Definition at line 673 of file ast.h.


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