Chromium Code Reviews| Index: src/ast-numbering.cc |
| diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc |
| index c2dd70e1bbe75086a0de3e9097aac6d2b3dc49c1..784e605d747822f7814a993478d9868884e0c51f 100644 |
| --- a/src/ast-numbering.cc |
| +++ b/src/ast-numbering.cc |
| @@ -47,10 +47,10 @@ class AstNumberingVisitor FINAL : public AstVisitor { |
| void IncrementNodeCount() { properties_.add_node_count(1); } |
| void DisableCrankshaft(BailoutReason reason) { |
| dont_crankshaft_reason_ = reason; |
| - properties_.flags()->Add(kDontSelfOptimize); |
| + DisableSelfOptimization(); |
| } |
| // TODO(turbofan): Remove the dont_turbofan_reason once no nodes are |
| - // DontTurbofanNode. That set of nodes must be kept in sync with |
| + // DisableTurbofan. That set of nodes must be kept in sync with |
| // Pipeline::GenerateCode. |
| void DisableTurbofan(BailoutReason reason) { |
| dont_crankshaft_reason_ = reason; |
| @@ -390,7 +390,7 @@ void AstNumberingVisitor::VisitForInStatement(ForInStatement* node) { |
| void AstNumberingVisitor::VisitForOfStatement(ForOfStatement* node) { |
| IncrementNodeCount(); |
| - DisableTurbofan(kForOfStatement); |
| + DisableCrankshaft(kForOfStatement); |
|
adamk
2015/01/13 19:02:36
Does this mean that any function that happens to u
Michael Starzinger
2015/01/13 19:28:01
Not yet, there are two things missing. First you w
|
| node->set_base_id(ReserveIdRange(ForOfStatement::num_ids())); |
| Visit(node->assign_iterator()); |
| Visit(node->next_result()); |