v8  3.11.10(node0.8.26)
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)
 

Functions

bool IsEqualString (void *first, void *second)
 
bool IsEqualNumber (void *first, void *second)
 
 DONT_INLINE_NODE (RegExpLiteral) 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_INLINE_NODE (   NodeType)
Value:
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \
increase_node_count(); \
add_flag(kDontInline); \
}

Definition at line 1019 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 1012 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 1024 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 661 of file ast.cc.

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

Definition at line 796 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 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 676 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 676 of file ast.cc.

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

Definition at line 1008 of file ast.cc.