v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <ast.h>
Public Types | |
enum | Context { kUninitialized, kEffect, kValue, kTest } |
Public Types inherited from AstNode | |
enum | Type { kInvalid = -1 } |
Public Member Functions | |
virtual int | position () const |
virtual Expression * | AsExpression () |
virtual bool | IsValidLeftHandSide () |
virtual bool | ToBooleanIsTrue () |
virtual bool | ToBooleanIsFalse () |
virtual bool | IsPropertyName () |
virtual bool | ResultOverwriteAllowed () |
bool | IsSmiLiteral () |
bool | IsStringLiteral () |
bool | IsNullLiteral () |
virtual bool | IsMonomorphic () |
virtual SmallMapList * | GetReceiverTypes () |
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 | |
Expression (Isolate *isolate) | |
Additional Inherited Members | |
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) |
|
inlineexplicitprotected |
|
inlinevirtual |
Definition at line 351 of file ast.h.
References ASSERT, SmallMapList::at(), SmallMapList::length(), and v8::internal::NULL.
|
inlinevirtual |
Reimplemented in Assignment, CountOperation, Call, and Property.
Definition at line 347 of file ast.h.
References v8::internal::NULL, and UNREACHABLE.
|
inlinevirtual |
Reimplemented in Assignment, CountOperation, CallNew, Call, and Property.
Definition at line 343 of file ast.h.
References UNREACHABLE.
bool IsNullLiteral | ( | ) |
Definition at line 67 of file ast.cc.
References v8::internal::NULL.
|
inlinevirtual |
Reimplemented in Literal.
Definition at line 327 of file ast.h.
Referenced by Property::RecordTypeFeedback(), and Assignment::RecordTypeFeedback().
bool IsSmiLiteral | ( | ) |
Definition at line 57 of file ast.cc.
References v8::internal::NULL.
bool IsStringLiteral | ( | ) |
Definition at line 62 of file ast.cc.
References v8::internal::NULL.
|
inlinevirtual |
Reimplemented in Property, and VariableProxy.
|
inlinevirtual |
Reimplemented in Throw, Assignment, CompareOperation, CountOperation, BinaryOperation, UnaryOperation, CallNew, Call, Property, and VariableProxy.
Definition at line 311 of file ast.h.
References UNREACHABLE.
|
inlinevirtual |
Reimplemented in BinaryOperation, and UnaryOperation.
|
inlinevirtual |
|
inlinevirtual |