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.cc File Reference
#include "ast.h"
#include <math.h>
#include "builtins.h"
#include "conversions.h"
#include "hashmap.h"
#include "parser.h"
#include "property-details.h"
#include "property.h"
#include "scopes.h"
#include "string-stream.h"
#include "type-info.h"
Include dependency graph for ast.cc:

Go to the source code of this file.

Data Structures

class  RegExpUnparser
 

Namespaces

 v8
 
 v8::internal
 

Macros

#define DECL_ACCEPT(type)   void type::Accept(AstVisitor* v) { v->Visit##type(this); }
 
#define MAKE_ACCEPT(Name)
 
#define MAKE_TYPE_CASE(Name)
 
#define MAKE_TYPE_CASE(Name)
 
#define MAKE_CASE(Name)   virtual void* Visit##Name(RegExp##Name*, void* data);
 
#define REGULAR_NODE(NodeType)
 
#define DONT_OPTIMIZE_NODE(NodeType)
 
#define DONT_INLINE_NODE(NodeType)
 
#define DONT_SELFOPTIMIZE_NODE(NodeType)
 
#define DONT_CACHE_NODE(NodeType)
 

Functions

bool IsEqualString (void *first, void *second)
 
bool IsEqualNumber (void *first, void *second)
 
 DONT_INLINE_NODE (ArrayLiteral) void AstConstructionVisitor
 

Macro Definition Documentation

#define DECL_ACCEPT (   type)    void type::Accept(AstVisitor* v) { v->Visit##type(this); }

Definition at line 47 of file ast.cc.

#define DONT_CACHE_NODE (   NodeType)
Value:
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \
increase_node_count(); \
add_flag(kDontOptimize); \
add_flag(kDontInline); \
add_flag(kDontSelfOptimize); \
add_flag(kDontCache); \
}

Definition at line 1034 of file ast.cc.

#define DONT_INLINE_NODE (   NodeType)
Value:
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \
increase_node_count(); \
add_flag(kDontInline); \
}

Definition at line 1024 of file ast.cc.

#define DONT_OPTIMIZE_NODE (   NodeType)
Value:
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \
increase_node_count(); \
add_flag(kDontOptimize); \
add_flag(kDontInline); \
add_flag(kDontSelfOptimize); \
}

Definition at line 1017 of file ast.cc.

#define DONT_SELFOPTIMIZE_NODE (   NodeType)
Value:
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \
increase_node_count(); \
add_flag(kDontSelfOptimize); \
}

Definition at line 1029 of file ast.cc.

#define MAKE_ACCEPT (   Name)
Value:
void* RegExp##Name::Accept(RegExpVisitor* visitor, void* data) { \
return visitor->Visit##Name(this, data); \
}

Definition at line 666 of file ast.cc.

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

Definition at line 801 of file ast.cc.

#define MAKE_TYPE_CASE (   Name)
Value:
RegExp##Name* RegExpTree::As##Name() { \
return NULL; \
} \
bool RegExpTree::Is##Name() { return false; }
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 681 of file ast.cc.

#define MAKE_TYPE_CASE (   Name)
Value:
RegExp##Name* RegExp##Name::As##Name() { \
return this; \
} \
bool RegExp##Name::Is##Name() { return true; }

Definition at line 681 of file ast.cc.

#define REGULAR_NODE (   NodeType)
Value:
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \
increase_node_count(); \
}

Definition at line 1013 of file ast.cc.