![]() |
v8
3.11.10(node0.8.26)
V8 is Google's open source JavaScript engine
|
#include <ast.h>
Public Member Functions | |
virtual bool | IsValidLeftHandSide () |
bool | IsVariable (Handle< String > n) |
bool | IsArguments () |
bool | IsLValue () |
Handle< String > | name () const |
Variable * | var () const |
bool | is_this () const |
int | position () const |
Interface * | interface () const |
void | MarkAsTrivial () |
void | MarkAsLValue () |
void | BindTo (Variable *var) |
![]() | |
virtual Expression * | AsExpression () |
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 |
![]() | |
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 () |
![]() | |
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 | |
VariableProxy (Isolate *isolate, Variable *var) | |
VariableProxy (Isolate *isolate, Handle< String > name, bool is_this, int position, Interface *interface) | |
![]() | |
Expression (Isolate *isolate) | |
Protected Attributes | |
Handle< String > | name_ |
Variable * | var_ |
bool | is_this_ |
bool | is_trivial_ |
bool | is_lvalue_ |
int | position_ |
Interface * | interface_ |
Friends | |
template<class > | |
class | AstNodeFactory |
Additional Inherited Members | |
![]() | |
enum | Context { kUninitialized, kEffect, kValue, kTest } |
![]() | |
enum | Type { kInvalid = -1 } |
![]() | |
static const int | kNoNumber = -1 |
static const int | kFunctionEntryId = 2 |
static const int | kDeclarationsId = 3 |
![]() | |
static int | GetNextId (Isolate *isolate) |
static int | ReserveIdRange (Isolate *isolate, int n) |
|
protected |
Definition at line 72 of file ast.cc.
References VariableProxy::BindTo().
|
protected |
void BindTo | ( | Variable * | var | ) |
Definition at line 103 of file ast.cc.
References ASSERT, Handle< T >::is_identical_to(), Variable::is_this(), VariableProxy::is_this(), Variable::name(), VariableProxy::name_, v8::internal::NULL, Variable::set_is_used(), VariableProxy::var(), and VariableProxy::var_.
Referenced by Scope::ResolveVariable(), Rewriter::Rewrite(), and VariableProxy::VariableProxy().
|
inline |
Definition at line 1487 of file ast.h.
Referenced by Scope::ResolveVariable().
|
inline |
Definition at line 1485 of file ast.h.
Referenced by VariableProxy::BindTo().
|
inline |
Definition at line 1477 of file ast.h.
References v8::internal::NULL.
|
inlinevirtual |
Reimplemented from Expression.
Definition at line 1469 of file ast.h.
References v8::internal::NULL.
Definition at line 1483 of file ast.h.
References v8::internal::name_.
Referenced by Scope::CheckConflictingVarDeclarations(), ScopeInfo::Create(), Scope::LookupFunctionVar(), and Scope::ResolveVariable().
|
inlinevirtual |
Reimplemented from Expression.
Definition at line 1486 of file ast.h.
Referenced by Scope::Analyze(), and Scope::ResolveVariable().
|
inline |
Definition at line 1484 of file ast.h.
Referenced by Scope::AllocateNonParameterLocals(), VariableProxy::BindTo(), Scope::ContextLocalCount(), ScopeInfo::Create(), Scope::LookupFunctionVar(), Scope::ResolveVariable(), and Scope::StackLocalCount().
|
friend |
Definition at line 1507 of file ast.h.
Referenced by VariableProxy::BindTo().
|
protected |
Definition at line 1508 of file ast.h.
Referenced by VariableProxy::BindTo().