v8
3.14.5(node0.10.28)
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) |
Public Member Functions inherited from Expression | |
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 () |
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 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 | |
VariableProxy (Isolate *isolate, Variable *var) | |
VariableProxy (Isolate *isolate, Handle< String > name, bool is_this, Interface *interface, int position) | |
Protected Member Functions inherited from Expression | |
Expression (Isolate *isolate) | |
Protected Attributes | |
Handle< String > | name_ |
Variable * | var_ |
bool | is_this_ |
bool | is_trivial_ |
bool | is_lvalue_ |
int | position_ |
Interface * | interface_ |
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) |
|
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 1414 of file ast.h.
Referenced by Scope::ResolveVariable().
|
inline |
Definition at line 1412 of file ast.h.
Referenced by VariableProxy::BindTo().
|
inline |
Definition at line 1404 of file ast.h.
References v8::internal::NULL.
|
inlinevirtual |
Reimplemented from Expression.
Definition at line 1396 of file ast.h.
References v8::internal::NULL.
Definition at line 1410 of file ast.h.
Referenced by Scope::CheckConflictingVarDeclarations(), ScopeInfo::Create(), Scope::LookupFunctionVar(), and Scope::ResolveVariable().
|
inlinevirtual |
Reimplemented from Expression.
Definition at line 1413 of file ast.h.
Referenced by Scope::Analyze(), and Scope::ResolveVariable().
|
inline |
Definition at line 1411 of file ast.h.
Referenced by Scope::AllocateNonParameterLocals(), VariableProxy::BindTo(), Scope::ContextLocalCount(), ScopeInfo::Create(), Scope::LookupFunctionVar(), Scope::ResolveVariable(), and Scope::StackLocalCount().
Definition at line 1432 of file ast.h.
Referenced by VariableProxy::BindTo().
|
protected |
Definition at line 1433 of file ast.h.
Referenced by VariableProxy::BindTo().