Index: src/ast-numbering.cc |
diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc |
index 058921bc4a62eed68582e02eb6da4269c57e45b5..54c67e8dce158060155e980a1e2dd604a6298d55 100644 |
--- a/src/ast-numbering.cc |
+++ b/src/ast-numbering.cc |
@@ -45,7 +45,6 @@ class AstNumberingVisitor FINAL : public AstVisitor { |
void IncrementNodeCount() { properties_.add_node_count(1); } |
void DisableCrankshaft(BailoutReason reason) { |
dont_crankshaft_reason_ = reason; |
- properties_.flags()->Add(kDontSelfOptimize); |
} |
// TODO(turbofan): Remove the dont_turbofan_reason once no nodes are |
// DontTurbofanNode. That set of nodes must be kept in sync with |
@@ -53,14 +52,9 @@ class AstNumberingVisitor FINAL : public AstVisitor { |
void DisableTurbofan(BailoutReason reason) { |
dont_crankshaft_reason_ = reason; |
dont_turbofan_reason_ = reason; |
- DisableSelfOptimization(); |
- } |
- void DisableSelfOptimization() { |
- properties_.flags()->Add(kDontSelfOptimize); |
} |
void DisableCaching(BailoutReason reason) { |
dont_crankshaft_reason_ = reason; |
- DisableSelfOptimization(); |
properties_.flags()->Add(kDontCache); |
} |
@@ -303,7 +297,6 @@ void AstNumberingVisitor::VisitWithStatement(WithStatement* node) { |
void AstNumberingVisitor::VisitDoWhileStatement(DoWhileStatement* node) { |
IncrementNodeCount(); |
- DisableSelfOptimization(); |
node->set_base_id(ReserveIdRange(DoWhileStatement::num_ids())); |
Visit(node->body()); |
Visit(node->cond()); |
@@ -312,7 +305,6 @@ void AstNumberingVisitor::VisitDoWhileStatement(DoWhileStatement* node) { |
void AstNumberingVisitor::VisitWhileStatement(WhileStatement* node) { |
IncrementNodeCount(); |
- DisableSelfOptimization(); |
node->set_base_id(ReserveIdRange(WhileStatement::num_ids())); |
Visit(node->cond()); |
Visit(node->body()); |
@@ -371,7 +363,6 @@ void AstNumberingVisitor::VisitCompareOperation(CompareOperation* node) { |
void AstNumberingVisitor::VisitForInStatement(ForInStatement* node) { |
IncrementNodeCount(); |
- DisableSelfOptimization(); |
ReserveFeedbackSlots(node); |
node->set_base_id(ReserveIdRange(ForInStatement::num_ids())); |
Visit(node->each()); |
@@ -433,7 +424,6 @@ void AstNumberingVisitor::VisitCaseClause(CaseClause* node) { |
void AstNumberingVisitor::VisitForStatement(ForStatement* node) { |
IncrementNodeCount(); |
- DisableSelfOptimization(); |
node->set_base_id(ReserveIdRange(ForStatement::num_ids())); |
if (node->init() != NULL) Visit(node->init()); |
if (node->cond() != NULL) Visit(node->cond()); |