v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Declaration Class Referenceabstract

#include <ast.h>

Inheritance diagram for Declaration:
Collaboration diagram for Declaration:

Public Member Functions

VariableProxy * proxy () const
 
VariableMode mode () const
 
Scopescope () const
 
virtual InitializationFlag initialization () const =0
 
virtual bool IsInlineable () const
 
- Public Member Functions inherited from AstNode
void * operator new (size_t size, Zone *zone)
 
 AstNode (int position)
 
virtual ~AstNode ()
 
virtual void Accept (AstVisitor *v)=0
 
virtual NodeType node_type () const =0
 
int position () const
 
virtual TargetCollector * AsTargetCollector ()
 
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

 Declaration (Zone *zone, VariableProxy *proxy, VariableMode mode, Scope *scope, int pos)
 

Additional Inherited Members

- Public Types inherited from AstNode
enum  NodeType { kInvalid = -1 }
 
- Static Protected Member Functions inherited from AstNode
static int GetNextId (Zone *zone)
 
static int ReserveIdRange (Zone *zone, int n)
 
static TypeFeedbackId reuse (BailoutId id)
 

Detailed Description

Definition at line 484 of file ast.h.

Constructor & Destructor Documentation

Declaration ( Zone zone,
VariableProxy *  proxy,
VariableMode  mode,
Scope scope,
int  pos 
)
inlineprotected

Definition at line 493 of file ast.h.

References ASSERT, and v8::internal::IsDeclaredVariableMode().

Member Function Documentation

bool IsInlineable ( ) const
virtual

Reimplemented in V8_FINAL< kOperandKind, kNumCachedOperands >.

Definition at line 575 of file ast.cc.

References Declaration::proxy().

VariableMode mode ( ) const
inline

Definition at line 487 of file ast.h.

Referenced by Scope::CheckConflictingVarDeclarations().

VariableProxy* proxy ( ) const
inline

Definition at line 486 of file ast.h.

Referenced by Scope::CheckConflictingVarDeclarations(), and Declaration::IsInlineable().

Scope* scope ( ) const
inline

Definition at line 488 of file ast.h.

Referenced by Scope::CheckConflictingVarDeclarations().


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