v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <ast.h>
Public Member Functions | |
Assignment * | AsSimpleAssignment () |
Token::Value | binary_op () const |
Token::Value | op () const |
Expression * | target () const |
Expression * | value () const |
virtual int | position () const |
BinaryOperation * | binary_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 SmallMapList * | GetReceiverTypes () |
int | CompoundLoadId () const |
int | AssignmentId () const |
Public Member Functions inherited from Expression | |
virtual Expression * | AsExpression () |
virtual bool | IsValidLeftHandSide () |
virtual bool | ToBooleanIsTrue () |
virtual bool | ToBooleanIsFalse () |
virtual bool | IsPropertyName () |
virtual bool | ResultOverwriteAllowed () |
bool | IsSmiLiteral () |
bool | IsStringLiteral () |
bool | IsNullLiteral () |
Handle< Map > | GetMonomorphicReceiverType () |
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 Declaration * | AsDeclaration () |
virtual Statement * | AsStatement () |
virtual TargetCollector * | AsTargetCollector () |
virtual BreakableStatement * | AsBreakableStatement () |
virtual IterationStatement * | AsIterationStatement () |
virtual MaterializedLiteral * | AsMaterializedLiteral () |
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) |
|
protected |
|
inline |
Definition at line 1937 of file ast.h.
References v8::internal::NULL.
Token::Value binary_op | ( | ) | const |
Definition at line 135 of file ast.cc.
References v8::internal::ADD, v8::internal::DIV, v8::internal::MUL, v8::internal::SUB, and UNREACHABLE.
|
inline |
|
inlinevirtual |
Reimplemented from Expression.
|
inlineprotected |
Definition at line 1978 of file ast.h.
References ASSERT, AstNode::GetNextId(), and Token::IsAssignmentOp().
Referenced by BASE_EMBEDDED< Visitor >::NewAssignment().
|
inlinevirtual |
Reimplemented from Expression.
|
inline |
Definition at line 1941 of file ast.h.
Referenced by InitializationBlockFinder::Update().
|
inlinevirtual |
Reimplemented from Expression.
void RecordTypeFeedback | ( | TypeFeedbackOracle * | oracle, |
Zone * | zone | ||
) |
Definition at line 437 of file ast.cc.
References ASSERT, Handle< T >::cast(), Literal::handle(), Expression::IsPropertyName(), Property::key(), v8::internal::kMaxKeyedPolymorphism, and v8::internal::NULL.
|
inline |
|
inline |
|
friend |