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

#include <ast.h>

Inheritance diagram for v8::internal::Assignment:
Collaboration diagram for v8::internal::Assignment:

Public Member Functions

Token::Value op () const
 
Expressiontarget () const
 
Expressionvalue () const
 
LookupHoistingMode lookup_hoisting_mode () const
 
void set_lookup_hoisting_mode (LookupHoistingMode mode)
 
- 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 Member Functions

 Assignment (NodeType type, Token::Value op, Expression *target, Expression *value, int pos)
 
- 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)
 

Private Types

using TokenField = Expression::NextBitField<Token::Value, 7>
 
using LookupHoistingModeField = TokenField::Next<bool, 1>
 

Private Attributes

friend Zone
 
Expressiontarget_
 
Expressionvalue_
 

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 Attributes inherited from v8::internal::AstNode
uint32_t bit_field_
 

Detailed Description

Definition at line 2167 of file ast.h.

Member Typedef Documentation

◆ LookupHoistingModeField

Definition at line 2194 of file ast.h.

◆ TokenField

Definition at line 2193 of file ast.h.

Constructor & Destructor Documentation

◆ Assignment()

v8::internal::Assignment::Assignment ( NodeType type,
Token::Value op,
Expression * target,
Expression * value,
int pos )
protected

Definition at line 181 of file ast.cc.

Here is the call graph for this function:

Member Function Documentation

◆ lookup_hoisting_mode()

LookupHoistingMode v8::internal::Assignment::lookup_hoisting_mode ( ) const
inline

Definition at line 2176 of file ast.h.

Here is the call graph for this function:

◆ op()

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

Definition at line 2169 of file ast.h.

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

◆ set_lookup_hoisting_mode()

void v8::internal::Assignment::set_lookup_hoisting_mode ( LookupHoistingMode mode)
inline

Definition at line 2180 of file ast.h.

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

◆ target()

Expression * v8::internal::Assignment::target ( ) const
inline

Definition at line 2170 of file ast.h.

Here is the caller graph for this function:

◆ value()

Expression * v8::internal::Assignment::value ( ) const
inline

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

Member Data Documentation

◆ target_

Expression* v8::internal::Assignment::target_
private

Definition at line 2196 of file ast.h.

◆ value_

Expression* v8::internal::Assignment::value_
private

Definition at line 2197 of file ast.h.

◆ Zone

friend v8::internal::Assignment::Zone
private

Definition at line 2191 of file ast.h.


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