#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-array-pointer.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; }
\
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 trace on stack replacement optimize closures functions with arguments object optimize functions containing for in loops profiler considers IC stability primitive functions trigger their own optimization re try self optimization if it failed insert an interrupt check at function exit execution budget before interrupt is triggered call count before self optimization self_optimization count_based_interrupts weighted_back_edges trace_opt 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 enable use of ARMv7 instructions if enable use of MIPS FPU instructions if NULL
Definition at line 216 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; }
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 2221 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 2720 of file ast.h.
#define VISIT_AND_RETURN |
( |
|
NodeType, |
|
|
|
node |
|
) |
| |
Value:visitor_.Visit##NodeType((node)); \
return node;
Definition at line 2647 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().