v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ast.h File Reference
#include "v8.h"
#include "assembler.h"
#include "factory.h"
#include "isolate.h"
#include "jsregexp.h"
#include "list-inl.h"
#include "runtime.h"
#include "small-pointer-list.h"
#include "smart-pointers.h"
#include "token.h"
#include "utils.h"
#include "variables.h"
#include "interface.h"
#include "zone-inl.h"
Include dependency graph for ast.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  AstNodeFactory< class >
 
class  BASE_EMBEDDED< Visitor >
 
class  BASE_EMBEDDED< Visitor >::Flags
 
class  AstNode
 
class  Statement
 
class  SmallMapList
 
class  Expression
 
class  BreakableStatement
 
class  Block
 
class  Declaration
 
class  VariableDeclaration
 
class  FunctionDeclaration
 
class  ModuleDeclaration
 
class  ImportDeclaration
 
class  ExportDeclaration
 
class  Module
 
class  ModuleLiteral
 
class  ModuleVariable
 
class  ModulePath
 
class  ModuleUrl
 
class  IterationStatement
 
class  DoWhileStatement
 
class  WhileStatement
 
class  ForStatement
 
class  ForInStatement
 
class  ExpressionStatement
 
class  ContinueStatement
 
class  BreakStatement
 
class  ReturnStatement
 
class  WithStatement
 
class  CaseClause
 
class  SwitchStatement
 
class  IfStatement
 
class  TargetCollector
 
class  TryStatement
 
class  TryCatchStatement
 
class  TryFinallyStatement
 
class  DebuggerStatement
 
class  EmptyStatement
 
class  Literal
 
class  MaterializedLiteral
 
class  ObjectLiteral
 
class  ObjectLiteral::Property
 
struct  ObjectLiteral::Accessors
 
class  RegExpLiteral
 
class  ArrayLiteral
 
class  VariableProxy
 
class  Property
 
class  Call
 
class  CallNew
 
class  CallRuntime
 
class  UnaryOperation
 
class  BinaryOperation
 
class  CountOperation
 
class  CompareOperation
 
class  Conditional
 
class  Assignment
 
class  Throw
 
class  FunctionLiteral
 
class  SharedFunctionInfoLiteral
 
class  ThisFunction
 
class  BASE_EMBEDDED< Visitor >
 
class  RegExpTree
 
class  RegExpDisjunction
 
class  RegExpAlternative
 
class  RegExpAssertion
 
class  BASE_EMBEDDED< Visitor >
 
class  RegExpCharacterClass
 
class  RegExpAtom
 
class  RegExpText
 
class  RegExpQuantifier
 
class  RegExpCapture
 
class  RegExpLookahead
 
class  RegExpBackReference
 
class  RegExpEmpty
 
class  BASE_EMBEDDED< Visitor >
 
class  BASE_EMBEDDED< Visitor >
 
class  BASE_EMBEDDED< Visitor >
 
class  BASE_EMBEDDED< Visitor >
 

Namespaces

 v8
 
 v8::internal
 

Macros

#define DECLARATION_NODE_LIST(V)
 
#define MODULE_NODE_LIST(V)
 
#define STATEMENT_NODE_LIST(V)
 
#define EXPRESSION_NODE_LIST(V)
 
#define AST_NODE_LIST(V)
 
#define DEF_FORWARD_DECLARATION(type)   class type;
 
#define DECLARE_NODE_TYPE(type)
 
#define DECLARE_TYPE_ENUM(type)   k##type,
 
#define DECLARE_NODE_FUNCTIONS(type)
 
#define MAKE_CASE(Name)   virtual void* Visit##Name(RegExp##Name*, void* data) = 0;
 
#define MAKE_ASTYPE(Name)
 
#define DEF_VISIT(type)   virtual void Visit##type(type* node) = 0;
 
#define DEF_VISIT(type)   void Visit##type(type* node);
 
#define DEF_VISIT(type)   void Visit##type(type* node) {}
 
#define VISIT_AND_RETURN(NodeType, node)
 
#define STATEMENT_WITH_LABELS(NodeType)
 

Typedefs

typedef ZoneList< Handle
< String > > 
ZoneStringList
 
typedef ZoneList< Handle
< Object > > 
ZoneObjectList
 

Enumerations

enum  AstPropertiesFlag {
  kDontInline, kDontOptimize, kDontSelfOptimize, kDontSoftInline,
  kDontCache
}
 

Macro Definition Documentation

#define AST_NODE_LIST (   V)
Value:
#define STATEMENT_NODE_LIST(V)
Definition: ast.h:76
#define MODULE_NODE_LIST(V)
Definition: ast.h:70
#define DECLARATION_NODE_LIST(V)
Definition: ast.h:63
#define EXPRESSION_NODE_LIST(V)
Definition: ast.h:94

Definition at line 115 of file ast.h.

#define DECLARATION_NODE_LIST (   V)
Value:
V(VariableDeclaration) \
V(FunctionDeclaration) \
V(ModuleDeclaration) \
V(ImportDeclaration) \
V(ExportDeclaration) \

Definition at line 63 of file ast.h.

#define DECLARE_NODE_FUNCTIONS (   type)
Value:
bool Is##type() { return node_type() == AstNode::k##type; } \
type* As##type() { return Is##type() ? reinterpret_cast<type*>(this) : NULL; }
activate correct semantics for inheriting readonliness enable harmony semantics for typeof enable harmony enable harmony proxies enable all harmony harmony_scoping harmony_proxies harmony_scoping tracks arrays with only smi values automatically unbox arrays of doubles use crankshaft use hydrogen range analysis use hydrogen global value numbering use function inlining maximum number of AST nodes considered for a single inlining loop invariant code motion print statistics for hydrogen trace generated IR for specified phases trace register allocator trace range analysis trace representation types environment for every instruction put a break point before deoptimizing polymorphic inlining perform array bounds checks elimination use dead code elimination trace on stack replacement optimize closures cache optimized code for closures functions with arguments object loop weight for representation inference allow uint32 values on optimize frames if they are used only in safe operations track parallel recompilation enable all profiler experiments number of stack frames inspected by the profiler call recompile stub directly when self optimizing trigger profiler ticks based on counting instead of timing weight back edges by jump distance for interrupt triggering percentage of ICs that must have type info to allow optimization watch_ic_patching retry_self_opt interrupt_at_exit extra verbose compilation tracing generate extra emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of SAHF instruction if enable use of VFP3 instructions if available this implies enabling ARMv7 and VFP2 enable use of VFP2 instructions if available enable use of SDIV and UDIV instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of MIPS FPU instructions if NULL

Definition at line 211 of file ast.h.

#define DECLARE_NODE_TYPE (   type)
Value:
virtual void Accept(AstVisitor* v); \
virtual AstNode::Type node_type() const { return AstNode::k##type; } \
template<class> friend class AstNodeFactory;

Definition at line 159 of file ast.h.

#define DECLARE_TYPE_ENUM (   type)    k##type,

Definition at line 192 of file ast.h.

#define DEF_FORWARD_DECLARATION (   type)    class type;

Definition at line 148 of file ast.h.

#define DEF_VISIT (   type)    virtual void Visit##type(type* node) = 0;

Definition at line 2546 of file ast.h.

#define DEF_VISIT (   type)    void Visit##type(type* node);

Definition at line 2546 of file ast.h.

#define DEF_VISIT (   type)    void Visit##type(type* node) {}

Definition at line 2546 of file ast.h.

#define EXPRESSION_NODE_LIST (   V)
Value:
V(FunctionLiteral) \
V(SharedFunctionInfoLiteral) \
V(Conditional) \
V(VariableProxy) \
V(Literal) \
V(RegExpLiteral) \
V(ObjectLiteral) \
V(ArrayLiteral) \
V(Assignment) \
V(Throw) \
V(Property) \
V(Call) \
V(CallNew) \
V(CallRuntime) \
V(UnaryOperation) \
V(CountOperation) \
V(BinaryOperation) \
V(CompareOperation) \
V(ThisFunction)

Definition at line 94 of file ast.h.

#define MAKE_ASTYPE (   Name)
Value:
virtual RegExp##Name* As##Name(); \
virtual bool Is##Name();

Definition at line 2140 of file ast.h.

#define MAKE_CASE (   Name)    virtual void* Visit##Name(RegExp##Name*, void* data) = 0;

Definition at line 2116 of file ast.h.

#define MODULE_NODE_LIST (   V)
Value:
V(ModuleLiteral) \
V(ModuleVariable) \
V(ModulePath) \
V(ModuleUrl)

Definition at line 70 of file ast.h.

#define STATEMENT_NODE_LIST (   V)
Value:
V(Block) \
V(ExpressionStatement) \
V(EmptyStatement) \
V(IfStatement) \
V(ContinueStatement) \
V(BreakStatement) \
V(ReturnStatement) \
V(WithStatement) \
V(SwitchStatement) \
V(DoWhileStatement) \
V(WhileStatement) \
V(ForStatement) \
V(ForInStatement) \
V(TryCatchStatement) \
V(TryFinallyStatement) \
V(DebuggerStatement)

Definition at line 76 of file ast.h.

#define STATEMENT_WITH_LABELS (   NodeType)
Value:
NodeType* New##NodeType(ZoneStringList* labels) { \
NodeType* stmt = new(zone_) NodeType(isolate_, labels); \
VISIT_AND_RETURN(NodeType, stmt); \
}
#define VISIT_AND_RETURN(NodeType, node)
Definition: ast.h:2566
ZoneList< Handle< String > > ZoneStringList
Definition: ast.h:155

Definition at line 2638 of file ast.h.

#define VISIT_AND_RETURN (   NodeType,
  node 
)
Value:
visitor_.Visit##NodeType((node)); \
return node;

Definition at line 2566 of file ast.h.

Referenced by BASE_EMBEDDED< Visitor >::NewArrayLiteral(), BASE_EMBEDDED< Visitor >::NewAssignment(), BASE_EMBEDDED< Visitor >::NewBinaryOperation(), BASE_EMBEDDED< Visitor >::NewBlock(), BASE_EMBEDDED< Visitor >::NewBreakStatement(), BASE_EMBEDDED< Visitor >::NewCall(), BASE_EMBEDDED< Visitor >::NewCallNew(), BASE_EMBEDDED< Visitor >::NewCallRuntime(), BASE_EMBEDDED< Visitor >::NewCompareOperation(), BASE_EMBEDDED< Visitor >::NewConditional(), BASE_EMBEDDED< Visitor >::NewContinueStatement(), BASE_EMBEDDED< Visitor >::NewCountOperation(), BASE_EMBEDDED< Visitor >::NewDebuggerStatement(), BASE_EMBEDDED< Visitor >::NewExportDeclaration(), BASE_EMBEDDED< Visitor >::NewExpressionStatement(), BASE_EMBEDDED< Visitor >::NewFunctionDeclaration(), BASE_EMBEDDED< Visitor >::NewIfStatement(), BASE_EMBEDDED< Visitor >::NewImportDeclaration(), BASE_EMBEDDED< Visitor >::NewLiteral(), BASE_EMBEDDED< Visitor >::NewModuleDeclaration(), BASE_EMBEDDED< Visitor >::NewModuleLiteral(), BASE_EMBEDDED< Visitor >::NewModulePath(), BASE_EMBEDDED< Visitor >::NewModuleUrl(), BASE_EMBEDDED< Visitor >::NewModuleVariable(), BASE_EMBEDDED< Visitor >::NewObjectLiteral(), BASE_EMBEDDED< Visitor >::NewProperty(), BASE_EMBEDDED< Visitor >::NewRegExpLiteral(), BASE_EMBEDDED< Visitor >::NewReturnStatement(), BASE_EMBEDDED< Visitor >::NewSharedFunctionInfoLiteral(), BASE_EMBEDDED< Visitor >::NewThisFunction(), BASE_EMBEDDED< Visitor >::NewThrow(), BASE_EMBEDDED< Visitor >::NewTryCatchStatement(), BASE_EMBEDDED< Visitor >::NewTryFinallyStatement(), BASE_EMBEDDED< Visitor >::NewUnaryOperation(), BASE_EMBEDDED< Visitor >::NewVariableDeclaration(), BASE_EMBEDDED< Visitor >::NewVariableProxy(), and BASE_EMBEDDED< Visitor >::NewWithStatement().