| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/ast-numbering.h" | 5 #include "src/ast-numbering.h" |
| 6 | 6 |
| 7 #include "src/ast.h" | 7 #include "src/ast.h" |
| 8 #include "src/scopes.h" | 8 #include "src/scopes.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 DisableOptimization(kExportDeclaration); | 106 DisableOptimization(kExportDeclaration); |
| 107 VisitVariableProxy(node->proxy()); | 107 VisitVariableProxy(node->proxy()); |
| 108 } | 108 } |
| 109 | 109 |
| 110 | 110 |
| 111 void AstNumberingVisitor::VisitEmptyStatement(EmptyStatement* node) { | 111 void AstNumberingVisitor::VisitEmptyStatement(EmptyStatement* node) { |
| 112 IncrementNodeCount(); | 112 IncrementNodeCount(); |
| 113 } | 113 } |
| 114 | 114 |
| 115 | 115 |
| 116 void AstNumberingVisitor::VisitDelegateStatement(DelegateStatement* node) { |
| 117 IncrementNodeCount(); |
| 118 Visit(node->statement()); |
| 119 } |
| 120 |
| 121 |
| 116 void AstNumberingVisitor::VisitContinueStatement(ContinueStatement* node) { | 122 void AstNumberingVisitor::VisitContinueStatement(ContinueStatement* node) { |
| 117 IncrementNodeCount(); | 123 IncrementNodeCount(); |
| 118 } | 124 } |
| 119 | 125 |
| 120 | 126 |
| 121 void AstNumberingVisitor::VisitBreakStatement(BreakStatement* node) { | 127 void AstNumberingVisitor::VisitBreakStatement(BreakStatement* node) { |
| 122 IncrementNodeCount(); | 128 IncrementNodeCount(); |
| 123 } | 129 } |
| 124 | 130 |
| 125 | 131 |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 } | 582 } |
| 577 | 583 |
| 578 | 584 |
| 579 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, | 585 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, |
| 580 FunctionLiteral* function) { | 586 FunctionLiteral* function) { |
| 581 AstNumberingVisitor visitor(isolate, zone); | 587 AstNumberingVisitor visitor(isolate, zone); |
| 582 return visitor.Renumber(function); | 588 return visitor.Renumber(function); |
| 583 } | 589 } |
| 584 } // namespace internal | 590 } // namespace internal |
| 585 } // namespace v8 | 591 } // namespace v8 |
| OLD | NEW |