#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"
Go to the source code of this file.
#define AST_NODE_LIST |
( |
|
V | ) |
|
Value:
#define STATEMENT_NODE_LIST(V)
#define MODULE_NODE_LIST(V)
#define DECLARATION_NODE_LIST(V)
#define EXPRESSION_NODE_LIST(V)
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, |
#define DEF_FORWARD_DECLARATION |
( |
|
type | ) |
class type; |
#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 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; |
#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(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* stmt =
new(zone_) NodeType(isolate_, labels);
\
}
#define VISIT_AND_RETURN(NodeType, node)
ZoneList< Handle< String > > ZoneStringList
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().