Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index 1df668ddf7ea90ede64991a9a0d175c1c546199e..11bb4ef36073cc213ff4baf4c9734042085c7382 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -998,30 +998,36 @@ CaseClause::CaseClause(Zone* zone, Expression* label, |
#define REGULAR_NODE(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
+ increase_node_count(); \ |
} |
#define REGULAR_NODE_WITH_FEEDBACK_SLOTS(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
+ increase_node_count(); \ |
add_slot_node(node); \ |
} |
#define DONT_OPTIMIZE_NODE(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
+ increase_node_count(); \ |
set_dont_crankshaft_reason(k##NodeType); \ |
add_flag(kDontSelfOptimize); \ |
} |
#define DONT_OPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
+ increase_node_count(); \ |
add_slot_node(node); \ |
set_dont_crankshaft_reason(k##NodeType); \ |
add_flag(kDontSelfOptimize); \ |
} |
#define DONT_TURBOFAN_NODE(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
+ increase_node_count(); \ |
set_dont_crankshaft_reason(k##NodeType); \ |
set_dont_turbofan_reason(k##NodeType); \ |
add_flag(kDontSelfOptimize); \ |
} |
#define DONT_TURBOFAN_NODE_WITH_FEEDBACK_SLOTS(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
+ increase_node_count(); \ |
add_slot_node(node); \ |
set_dont_crankshaft_reason(k##NodeType); \ |
set_dont_turbofan_reason(k##NodeType); \ |
@@ -1029,15 +1035,18 @@ CaseClause::CaseClause(Zone* zone, Expression* label, |
} |
#define DONT_SELFOPTIMIZE_NODE(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
+ increase_node_count(); \ |
add_flag(kDontSelfOptimize); \ |
} |
#define DONT_SELFOPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
+ increase_node_count(); \ |
add_slot_node(node); \ |
add_flag(kDontSelfOptimize); \ |
} |
#define DONT_CACHE_NODE(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
+ increase_node_count(); \ |
set_dont_crankshaft_reason(k##NodeType); \ |
add_flag(kDontSelfOptimize); \ |
add_flag(kDontCache); \ |
@@ -1111,6 +1120,7 @@ DONT_CACHE_NODE(ModuleLiteral) |
void AstConstructionVisitor::VisitCallRuntime(CallRuntime* node) { |
+ increase_node_count(); |
add_slot_node(node); |
if (node->is_jsruntime()) { |
// Don't try to optimize JS runtime calls because we bailout on them. |