v8  3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Assignment Class Reference

#include <ast.h>

Inheritance diagram for Assignment:
Collaboration diagram for Assignment:

Public Member Functions

AssignmentAsSimpleAssignment ()
 
Token::Value binary_op () const
 
Token::Value op () const
 
Expressiontarget () const
 
Expressionvalue () const
 
virtual int position () const
 
BinaryOperationbinary_operation () const
 
bool is_compound () const
 
bool starts_initialization_block ()
 
bool ends_initialization_block ()
 
void mark_block_start ()
 
void mark_block_end ()
 
void RecordTypeFeedback (TypeFeedbackOracle *oracle, Zone *zone)
 
virtual bool IsMonomorphic ()
 
virtual SmallMapListGetReceiverTypes ()
 
int CompoundLoadId () const
 
int AssignmentId () const
 
- Public Member Functions inherited from Expression
virtual ExpressionAsExpression ()
 
virtual bool IsValidLeftHandSide ()
 
virtual bool ToBooleanIsTrue ()
 
virtual bool ToBooleanIsFalse ()
 
virtual bool IsPropertyName ()
 
virtual bool ResultOverwriteAllowed ()
 
bool IsSmiLiteral ()
 
bool IsStringLiteral ()
 
bool IsNullLiteral ()
 
Handle< MapGetMonomorphicReceiverType ()
 
unsigned id () const
 
unsigned test_id () const
 
- Public Member Functions inherited from AstNode
void * operator new (size_t size, Zone *zone)
 
 AstNode ()
 
virtual ~AstNode ()
 
virtual void Accept (AstVisitor *v)=0
 
virtual Type node_type () const
 
virtual DeclarationAsDeclaration ()
 
virtual StatementAsStatement ()
 
virtual TargetCollectorAsTargetCollector ()
 
virtual BreakableStatementAsBreakableStatement ()
 
virtual IterationStatementAsIterationStatement ()
 
virtual MaterializedLiteralAsMaterializedLiteral ()
 
- Public Member Functions inherited from ZoneObject
 INLINE (void *operator new(size_t size, Zone *zone))
 
void operator delete (void *, size_t)
 
void operator delete (void *pointer, Zone *zone)
 

Protected Member Functions

 Assignment (Isolate *isolate, Token::Value op, Expression *target, Expression *value, int pos)
 
template<class Visitor >
void Init (Isolate *isolate, AstNodeFactory< Visitor > *factory)
 
- Protected Member Functions inherited from Expression
 Expression (Isolate *isolate)
 

Friends

template<class >
class AstNodeFactory
 

Additional Inherited Members

- Public Types inherited from Expression
enum  Context { kUninitialized, kEffect, kValue, kTest }
 
- Public Types inherited from AstNode
enum  Type { kInvalid = -1 }
 
- Static Public Attributes inherited from AstNode
static const int kNoNumber = -1
 
static const int kFunctionEntryId = 2
 
static const int kDeclarationsId = 3
 
- Static Protected Member Functions inherited from AstNode
static int GetNextId (Isolate *isolate)
 
static int ReserveIdRange (Isolate *isolate, int n)
 

Detailed Description

Definition at line 1933 of file ast.h.

Constructor & Destructor Documentation

Assignment ( Isolate isolate,
Token::Value  op,
Expression target,
Expression value,
int  pos 
)
protected

Definition at line 117 of file ast.cc.

Member Function Documentation

int AssignmentId ( ) const
inline

Definition at line 1966 of file ast.h.

Assignment* AsSimpleAssignment ( )
inline

Definition at line 1937 of file ast.h.

References v8::internal::NULL.

Token::Value binary_op ( ) const
BinaryOperation* binary_operation ( ) const
inline

Definition at line 1945 of file ast.h.

int CompoundLoadId ( ) const
inline

Definition at line 1965 of file ast.h.

bool ends_initialization_block ( )
inline

Definition at line 1955 of file ast.h.

virtual SmallMapList* GetReceiverTypes ( )
inlinevirtual

Reimplemented from Expression.

Definition at line 1962 of file ast.h.

void Init ( Isolate isolate,
AstNodeFactory< Visitor > *  factory 
)
inlineprotected

Definition at line 1978 of file ast.h.

References ASSERT, AstNode::GetNextId(), and Token::IsAssignmentOp().

Referenced by BASE_EMBEDDED< Visitor >::NewAssignment().

bool is_compound ( ) const
inline

Definition at line 1948 of file ast.h.

virtual bool IsMonomorphic ( )
inlinevirtual

Reimplemented from Expression.

Definition at line 1961 of file ast.h.

void mark_block_end ( )
inline

Definition at line 1957 of file ast.h.

void mark_block_start ( )
inline

Definition at line 1956 of file ast.h.

Token::Value op ( ) const
inline

Definition at line 1941 of file ast.h.

Referenced by InitializationBlockFinder::Update().

virtual int position ( ) const
inlinevirtual

Reimplemented from Expression.

Definition at line 1944 of file ast.h.

void RecordTypeFeedback ( TypeFeedbackOracle *  oracle,
Zone zone 
)
bool starts_initialization_block ( )
inline

Definition at line 1954 of file ast.h.

Expression* target ( ) const
inline

Definition at line 1942 of file ast.h.

Expression* value ( ) const
inline

Definition at line 1943 of file ast.h.

Friends And Related Function Documentation

friend class AstNodeFactory
friend

Definition at line 1969 of file ast.h.


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