V8 Project
ast.cc File Reference
#include "src/ast.h"
#include <cmath>
#include "src/builtins.h"
#include "src/code-stubs.h"
#include "src/contexts.h"
#include "src/conversions.h"
#include "src/hashmap.h"
#include "src/parser.h"
#include "src/property.h"
#include "src/property-details.h"
#include "src/scopes.h"
#include "src/string-stream.h"
#include "src/type-info.h"
+ Include dependency graph for ast.cc:

Go to the source code of this file.

Classes

class  v8::internal::FINAL< kOperandKind, kNumCachedOperands >
 Source to read snapshot and builtins files from. More...
 

Namespaces

 v8
 Debugger support for the V8 JavaScript engine.
 
 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)
 
#define REGULAR_NODE(NodeType)
 
#define REGULAR_NODE_WITH_FEEDBACK_SLOTS(NodeType)
 
#define DONT_OPTIMIZE_NODE(NodeType)
 
#define DONT_OPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(NodeType)
 
#define DONT_TURBOFAN_NODE(NodeType)
 
#define DONT_SELFOPTIMIZE_NODE(NodeType)
 
#define DONT_SELFOPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(NodeType)
 
#define DONT_CACHE_NODE(NodeType)
 

Functions

static bool v8::internal::IsTypeof (Expression *expr)
 
static bool v8::internal::MatchLiteralCompareTypeof (Expression *left, Token::Value op, Expression *right, Expression **expr, Handle< String > *check)
 
static bool v8::internal::IsVoidOfLiteral (Expression *expr)
 
static bool v8::internal::MatchLiteralCompareUndefined (Expression *left, Token::Value op, Expression *right, Expression **expr, Isolate *isolate)
 
static bool v8::internal::MatchLiteralCompareNull (Expression *left, Token::Value op, Expression *right, Expression **expr)
 
static Interval v8::internal::ListCaptureRegisters (ZoneList< RegExpTree * > *children)
 
static int v8::internal::IncreaseBy (int previous, int increase)
 

Macro Definition Documentation

◆ DECL_ACCEPT

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

Definition at line 26 of file ast.cc.

◆ DONT_CACHE_NODE

#define DONT_CACHE_NODE (   NodeType)
Value:
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \
increase_node_count(); \
set_dont_crankshaft_reason(k##NodeType); \
add_flag(kDontSelfOptimize); \
add_flag(kDontCache); \
}
@ kDontCache
Definition: ast.h:158
@ kDontSelfOptimize
Definition: ast.h:156

Definition at line 1041 of file ast.cc.

◆ DONT_OPTIMIZE_NODE

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

Definition at line 1010 of file ast.cc.

◆ DONT_OPTIMIZE_NODE_WITH_FEEDBACK_SLOTS

#define DONT_OPTIMIZE_NODE_WITH_FEEDBACK_SLOTS (   NodeType)
Value:
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \
increase_node_count(); \
add_slot_node(node); \
set_dont_crankshaft_reason(k##NodeType); \
add_flag(kDontSelfOptimize); \
}

Definition at line 1016 of file ast.cc.

◆ DONT_SELFOPTIMIZE_NODE

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

Definition at line 1030 of file ast.cc.

◆ DONT_SELFOPTIMIZE_NODE_WITH_FEEDBACK_SLOTS

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

Definition at line 1035 of file ast.cc.

◆ DONT_TURBOFAN_NODE

#define DONT_TURBOFAN_NODE (   NodeType)
Value:
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \
increase_node_count(); \
set_dont_crankshaft_reason(k##NodeType); \
set_dont_turbofan_reason(k##NodeType); \
add_flag(kDontSelfOptimize); \
}

Definition at line 1023 of file ast.cc.

◆ MAKE_ACCEPT

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

Definition at line 665 of file ast.cc.

◆ MAKE_CASE

#define MAKE_CASE (   Name)
Value:
virtual void* Visit##Name(RegExp##Name*, \
void* data) OVERRIDE;
#define OVERRIDE

Definition at line 799 of file ast.cc.

◆ MAKE_TYPE_CASE [1/2]

#define MAKE_TYPE_CASE (   Name)
Value:
RegExp##Name* RegExpTree::As##Name() { \
return NULL; \
} \
bool RegExpTree::Is##Name() { return false; }
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
bool Is(Object *obj)

Definition at line 680 of file ast.cc.

◆ MAKE_TYPE_CASE [2/2]

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

Definition at line 680 of file ast.cc.

◆ REGULAR_NODE

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

Definition at line 1001 of file ast.cc.

◆ REGULAR_NODE_WITH_FEEDBACK_SLOTS

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

Definition at line 1005 of file ast.cc.