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

#include <ast.h>

Inheritance diagram for v8::internal::CallBase:
Collaboration diagram for v8::internal::CallBase:

Public Types

enum  SpreadPosition { kNoSpread , kHasFinalSpread , kHasNonFinalSpread }
 
- Public Types inherited from v8::internal::Expression
enum  Context { kUninitialized , kEffect , kValue , kTest }
 
- Public Types inherited from v8::internal::AstNode
enum  NodeType : uint8_t
 

Public Member Functions

Expressionexpression () const
 
const ZonePtrList< Expression > * arguments () const
 
SpreadPosition spread_position () const
 
- Public Member Functions inherited from v8::internal::Expression
bool IsValidReferenceExpression () const
 
bool IsPrivateName () const
 
bool ToBooleanIsTrue () const
 
bool ToBooleanIsFalse () const
 
bool IsPropertyName () const
 
bool IsAnonymousFunctionDefinition () const
 
bool IsConciseMethodDefinition () const
 
bool IsAccessorFunctionDefinition () const
 
bool IsSmiLiteral () const
 
V8_EXPORT_PRIVATE bool IsNumberLiteral () const
 
bool IsStringLiteral () const
 
bool IsConsStringLiteral () const
 
bool IsNullLiteral () const
 
bool IsBooleanLiteral () const
 
bool IsTheHoleLiteral () const
 
bool IsUndefinedLiteral () const
 
bool IsNullOrUndefinedLiteral () const
 
bool IsLiteralButNotNullOrUndefined () const
 
bool IsCompileTimeValue ()
 
bool IsPattern ()
 
bool is_parenthesized () const
 
void mark_parenthesized ()
 
void clear_parenthesized ()
 
- 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 Types

using SpreadPositionField = Expression::NextBitField<SpreadPosition, 2>
 
template<class T , int size>
using NextBitField = SpreadPositionField::Next<T, size>
 
- Protected Types inherited from v8::internal::Expression
template<class T , int size>
using NextBitField = IsParenthesizedField::Next<T, size>
 
- Protected Types inherited from v8::internal::AstNode
template<class T , int size>
using NextBitField = NodeTypeField::Next<T, size>
 

Protected Member Functions

 CallBase (Zone *zone, NodeType type, Expression *expression, const ScopedPtrList< Expression > &arguments, int pos, bool has_spread)
 
void ComputeSpreadPosition ()
 
- Protected Member Functions inherited from v8::internal::Expression
 Expression (int pos, NodeType type)
 
- Protected Member Functions inherited from v8::internal::AstNode
 AstNode (int position, NodeType type)
 

Protected Attributes

Expressionexpression_
 
ZonePtrList< Expressionarguments_
 
- Protected Attributes inherited from v8::internal::AstNode
uint32_t bit_field_
 

Detailed Description

Definition at line 1733 of file ast.h.

Member Typedef Documentation

◆ NextBitField

template<class T , int size>
using v8::internal::CallBase::NextBitField = SpreadPositionField::Next<T, size>
protected

Definition at line 1763 of file ast.h.

◆ SpreadPositionField

Member Enumeration Documentation

◆ SpreadPosition

Enumerator
kNoSpread 
kHasFinalSpread 
kHasNonFinalSpread 

Definition at line 1738 of file ast.h.

Constructor & Destructor Documentation

◆ CallBase()

v8::internal::CallBase::CallBase ( Zone * zone,
NodeType type,
Expression * expression,
const ScopedPtrList< Expression > & arguments,
int pos,
bool has_spread )
inlineprotected

Definition at line 1744 of file ast.h.

Here is the call graph for this function:

Member Function Documentation

◆ arguments()

const ZonePtrList< Expression > * v8::internal::CallBase::arguments ( ) const
inline

Definition at line 1736 of file ast.h.

Here is the caller graph for this function:

◆ ComputeSpreadPosition()

void v8::internal::CallBase::ComputeSpreadPosition ( )
protected

Definition at line 961 of file ast.cc.

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

◆ expression()

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

Definition at line 1735 of file ast.h.

Here is the caller graph for this function:

◆ spread_position()

SpreadPosition v8::internal::CallBase::spread_position ( ) const
inline

Definition at line 1739 of file ast.h.

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

Member Data Documentation

◆ arguments_

ZonePtrList<Expression> v8::internal::CallBase::arguments_
protected

Definition at line 1766 of file ast.h.

◆ expression_

Expression* v8::internal::CallBase::expression_
protected

Definition at line 1765 of file ast.h.


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