Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index 2edd51ecde537a845fc0a08fff4a13371de62439..79654c3c889e543a6baa4437b9c828fa8662fbd2 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -1010,42 +1010,27 @@ CaseClause::CaseClause(Zone* zone, Expression* label, |
} |
#define DONT_OPTIMIZE_NODE(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
- set_dont_crankshaft_reason(k##NodeType); \ |
- add_flag(kDontSelfOptimize); \ |
} |
#define DONT_OPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
add_slot_node(node); \ |
- set_dont_crankshaft_reason(k##NodeType); \ |
- add_flag(kDontSelfOptimize); \ |
} |
#define DONT_TURBOFAN_NODE(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
- 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) { \ |
add_slot_node(node); \ |
- set_dont_crankshaft_reason(k##NodeType); \ |
- set_dont_turbofan_reason(k##NodeType); \ |
- add_flag(kDontSelfOptimize); \ |
} |
#define DONT_SELFOPTIMIZE_NODE(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
- add_flag(kDontSelfOptimize); \ |
} |
#define DONT_SELFOPTIMIZE_NODE_WITH_FEEDBACK_SLOTS(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
add_slot_node(node); \ |
- add_flag(kDontSelfOptimize); \ |
} |
#define DONT_CACHE_NODE(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
- set_dont_crankshaft_reason(k##NodeType); \ |
- add_flag(kDontSelfOptimize); \ |
- add_flag(kDontCache); \ |
} |
REGULAR_NODE(VariableDeclaration) |
@@ -1117,10 +1102,6 @@ DONT_CACHE_NODE(ModuleLiteral) |
void AstConstructionVisitor::VisitCallRuntime(CallRuntime* node) { |
add_slot_node(node); |
- if (node->is_jsruntime()) { |
- // Don't try to optimize JS runtime calls because we bailout on them. |
- set_dont_crankshaft_reason(kCallToAJavaScriptRuntimeFunction); |
- } |
} |
#undef REGULAR_NODE |