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

#include <ast.h>

Inheritance diagram for v8::internal::Block:
Collaboration diagram for v8::internal::Block:

Public Member Functions

ZonePtrList< Statement > * statements ()
 
bool ignore_completion_value () const
 
bool is_breakable () const
 
bool is_initialization_block_for_parameters () const
 
Scopescope () const
 
void set_scope (Scope *scope)
 
void InitializeStatements (const ScopedPtrList< Statement > &statements, Zone *zone)
 
- 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
 

Protected Member Functions

 Block (Zone *zone, int capacity, bool ignore_completion_value, bool is_breakable, bool is_initialization_block_for_parameters)
 
 Block (bool ignore_completion_value, bool is_breakable, bool is_initialization_block_for_parameters)
 
- Protected Member Functions inherited from v8::internal::BreakableStatement
 BreakableStatement (int position, 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)
 

Private Types

using IgnoreCompletionField = BreakableStatement::NextBitField<bool, 1>
 
using IsBreakableField = IgnoreCompletionField::Next<bool, 1>
 
using IsInitializationBlockForParametersField
 

Private Attributes

friend Zone
 
ZonePtrList< Statementstatements_
 
Scopescope_
 

Friends

class AstNodeFactory
 

Additional Inherited Members

- Public Types inherited from v8::internal::AstNode
enum  NodeType : uint8_t
 
- Protected Types inherited from v8::internal::AstNode
template<class T , int size>
using NextBitField = NodeTypeField::Next<T, size>
 
- Protected Attributes inherited from v8::internal::AstNode
uint32_t bit_field_
 

Detailed Description

Definition at line 321 of file ast.h.

Member Typedef Documentation

◆ IgnoreCompletionField

◆ IsBreakableField

Definition at line 349 of file ast.h.

◆ IsInitializationBlockForParametersField

Initial value:
BitField< T2, kShift+kSize, size2, U > Next
Definition bit-field.h:47

Definition at line 350 of file ast.h.

Constructor & Destructor Documentation

◆ Block() [1/2]

v8::internal::Block::Block ( Zone * zone,
int capacity,
bool ignore_completion_value,
bool is_breakable,
bool is_initialization_block_for_parameters )
inlineprotected

Definition at line 354 of file ast.h.

Here is the call graph for this function:

◆ Block() [2/2]

v8::internal::Block::Block ( bool ignore_completion_value,
bool is_breakable,
bool is_initialization_block_for_parameters )
inlineprotected

Definition at line 365 of file ast.h.

Member Function Documentation

◆ ignore_completion_value()

bool v8::internal::Block::ignore_completion_value ( ) const
inline

Definition at line 324 of file ast.h.

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

◆ InitializeStatements()

void v8::internal::Block::InitializeStatements ( const ScopedPtrList< Statement > & statements,
Zone * zone )
inline

Definition at line 335 of file ast.h.

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

◆ is_breakable()

bool v8::internal::Block::is_breakable ( ) const
inline

Definition at line 327 of file ast.h.

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

◆ is_initialization_block_for_parameters()

bool v8::internal::Block::is_initialization_block_for_parameters ( ) const
inline

Definition at line 328 of file ast.h.

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

◆ scope()

Scope * v8::internal::Block::scope ( ) const
inline

Definition at line 332 of file ast.h.

Here is the caller graph for this function:

◆ set_scope()

void v8::internal::Block::set_scope ( Scope * scope)
inline

Definition at line 333 of file ast.h.

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

◆ statements()

ZonePtrList< Statement > * v8::internal::Block::statements ( )
inline

Definition at line 323 of file ast.h.

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ AstNodeFactory

friend class AstNodeFactory
friend

Definition at line 342 of file ast.h.

Member Data Documentation

◆ scope_

Scope* v8::internal::Block::scope_
private

Definition at line 346 of file ast.h.

◆ statements_

ZonePtrList<Statement> v8::internal::Block::statements_
private

Definition at line 345 of file ast.h.

◆ Zone

friend v8::internal::Block::Zone
private

Definition at line 343 of file ast.h.


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