Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index b966cc3d2db9582cc67cfcab7d7ad1d634cdf8a1..cbadb75c61f3f58527dbcc612ae97fd0b30f4908 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -1085,7 +1085,7 @@ CaseClause::CaseClause(Isolate* isolate, |
#define DONT_OPTIMIZE_NODE(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
increase_node_count(); \ |
- add_flag(kDontOptimize); \ |
+ set_dont_optimize_reason(k##NodeType); \ |
add_flag(kDontInline); \ |
add_flag(kDontSelfOptimize); \ |
} |
@@ -1097,7 +1097,7 @@ CaseClause::CaseClause(Isolate* isolate, |
#define DONT_CACHE_NODE(NodeType) \ |
void AstConstructionVisitor::Visit##NodeType(NodeType* node) { \ |
increase_node_count(); \ |
- add_flag(kDontOptimize); \ |
+ set_dont_optimize_reason(k##NodeType); \ |
add_flag(kDontInline); \ |
add_flag(kDontSelfOptimize); \ |
add_flag(kDontCache); \ |