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

#include <ast.h>

Inheritance diagram for v8::internal::NaryOperation:
Collaboration diagram for v8::internal::NaryOperation:

Classes

struct  NaryOperationEntry
 

Public Member Functions

Token::Value op () const
 
Expressionfirst () const
 
Expressionsubsequent (size_t index) const
 
size_t subsequent_length () const
 
int subsequent_op_position (size_t index) const
 
void AddSubsequent (Expression *expr, int pos)
 
- 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
 

Private Types

using OperatorField = Expression::NextBitField<Token::Value, 7>
 

Private Member Functions

 NaryOperation (Zone *zone, Token::Value op, Expression *first, size_t initial_subsequent_size)
 

Private Attributes

friend Zone
 
Expressionfirst_
 
ZoneVector< NaryOperationEntrysubsequent_
 

Friends

class AstNodeFactory
 

Additional Inherited Members

- Public Types inherited from v8::internal::Expression
enum  Context { kUninitialized , kEffect , kValue , kTest }
 
- Public Types inherited from v8::internal::AstNode
enum  NodeType : uint8_t
 
- 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 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 inherited from v8::internal::AstNode
uint32_t bit_field_
 

Detailed Description

Definition at line 1940 of file ast.h.

Member Typedef Documentation

◆ OperatorField

Constructor & Destructor Documentation

◆ NaryOperation()

v8::internal::NaryOperation::NaryOperation ( Zone * zone,
Token::Value op,
Expression * first,
size_t initial_subsequent_size )
inlineprivate

Definition at line 1961 of file ast.h.

Here is the call graph for this function:

Member Function Documentation

◆ AddSubsequent()

void v8::internal::NaryOperation::AddSubsequent ( Expression * expr,
int pos )
inline

Definition at line 1953 of file ast.h.

Here is the caller graph for this function:

◆ first()

Expression * v8::internal::NaryOperation::first ( ) const
inline

Definition at line 1943 of file ast.h.

Here is the caller graph for this function:

◆ op()

Token::Value v8::internal::NaryOperation::op ( ) const
inline

Definition at line 1942 of file ast.h.

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

◆ subsequent()

Expression * v8::internal::NaryOperation::subsequent ( size_t index) const
inline

Definition at line 1944 of file ast.h.

Here is the caller graph for this function:

◆ subsequent_length()

size_t v8::internal::NaryOperation::subsequent_length ( ) const
inline

Definition at line 1948 of file ast.h.

Here is the caller graph for this function:

◆ subsequent_op_position()

int v8::internal::NaryOperation::subsequent_op_position ( size_t index) const
inline

Definition at line 1949 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 1958 of file ast.h.

Member Data Documentation

◆ first_

Expression* v8::internal::NaryOperation::first_
private

Definition at line 1987 of file ast.h.

◆ subsequent_

ZoneVector<NaryOperationEntry> v8::internal::NaryOperation::subsequent_
private

Definition at line 1995 of file ast.h.

◆ Zone

friend v8::internal::NaryOperation::Zone
private

Definition at line 1959 of file ast.h.


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