v8  3.14.5(node0.10.28)
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
 
BailoutId AssignmentId () const
 
TypeFeedbackId AssignmentFeedbackId ()
 
void RecordTypeFeedback (TypeFeedbackOracle *oracle, Zone *zone)
 
virtual bool IsMonomorphic ()
 
virtual SmallMapListGetReceiverTypes ()
 
- Public Member Functions inherited from Expression
virtual bool IsValidLeftHandSide ()
 
virtual bool ToBooleanIsTrue ()
 
virtual bool ToBooleanIsFalse ()
 
virtual bool IsPropertyName ()
 
virtual bool ResultOverwriteAllowed ()
 
bool IsSmiLiteral ()
 
bool IsStringLiteral ()
 
bool IsNullLiteral ()
 
Handle< MapGetMonomorphicReceiverType ()
 
BailoutId id () const
 
TypeFeedbackId 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 =0
 
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)
 

Additional Inherited Members

- Public Types inherited from Expression
enum  Context { kUninitialized, kEffect, kValue, kTest }
 
- Public Types inherited from AstNode
enum  Type { kInvalid = -1 }
 
- Static Protected Member Functions inherited from AstNode
static int GetNextId (Isolate *isolate)
 
static int ReserveIdRange (Isolate *isolate, int n)
 
static TypeFeedbackId reuse (BailoutId id)
 

Detailed Description

Definition at line 1856 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

TypeFeedbackId AssignmentFeedbackId ( )
inline

Definition at line 1876 of file ast.h.

References AstNode::reuse().

Referenced by TypeFeedbackOracle::StoreReceiverTypes().

BailoutId AssignmentId ( ) const
inline

Definition at line 1873 of file ast.h.

Assignment* AsSimpleAssignment ( )
inline

Definition at line 1860 of file ast.h.

References v8::internal::NULL.

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

Definition at line 1868 of file ast.h.

virtual SmallMapList* GetReceiverTypes ( )
inlinevirtual

Reimplemented from Expression.

Definition at line 1879 of file ast.h.

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

Definition at line 1889 of file ast.h.

References ASSERT, and Token::IsAssignmentOp().

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

bool is_compound ( ) const
inline

Definition at line 1871 of file ast.h.

virtual bool IsMonomorphic ( )
inlinevirtual

Reimplemented from Expression.

Definition at line 1878 of file ast.h.

Token::Value op ( ) const
inline

Definition at line 1864 of file ast.h.

virtual int position ( ) const
inlinevirtual

Reimplemented from Expression.

Definition at line 1867 of file ast.h.

Expression* target ( ) const
inline

Definition at line 1865 of file ast.h.

Expression* value ( ) const
inline

Definition at line 1866 of file ast.h.


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