| 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 node->set_base_id(ReserveIdRange(ForInStatement::num_ids())); | 382 node->set_base_id(ReserveIdRange(ForInStatement::num_ids())); |
| 383 Visit(node->each()); | 383 Visit(node->each()); |
| 384 Visit(node->enumerable()); | 384 Visit(node->enumerable()); |
| 385 Visit(node->body()); | 385 Visit(node->body()); |
| 386 ReserveFeedbackSlots(node); | 386 ReserveFeedbackSlots(node); |
| 387 } | 387 } |
| 388 | 388 |
| 389 | 389 |
| 390 void AstNumberingVisitor::VisitForOfStatement(ForOfStatement* node) { | 390 void AstNumberingVisitor::VisitForOfStatement(ForOfStatement* node) { |
| 391 IncrementNodeCount(); | 391 IncrementNodeCount(); |
| 392 DisableCrankshaft(kForOfStatement); | |
| 393 node->set_base_id(ReserveIdRange(ForOfStatement::num_ids())); | 392 node->set_base_id(ReserveIdRange(ForOfStatement::num_ids())); |
| 394 Visit(node->assign_iterator()); | 393 Visit(node->assign_iterator()); |
| 395 Visit(node->next_result()); | 394 Visit(node->next_result()); |
| 396 Visit(node->result_done()); | 395 Visit(node->result_done()); |
| 397 Visit(node->assign_each()); | 396 Visit(node->assign_each()); |
| 398 Visit(node->body()); | 397 Visit(node->body()); |
| 399 ReserveFeedbackSlots(node); | 398 ReserveFeedbackSlots(node); |
| 400 } | 399 } |
| 401 | 400 |
| 402 | 401 |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 } | 573 } |
| 575 | 574 |
| 576 | 575 |
| 577 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, | 576 bool AstNumbering::Renumber(Isolate* isolate, Zone* zone, |
| 578 FunctionLiteral* function) { | 577 FunctionLiteral* function) { |
| 579 AstNumberingVisitor visitor(isolate, zone); | 578 AstNumberingVisitor visitor(isolate, zone); |
| 580 return visitor.Renumber(function); | 579 return visitor.Renumber(function); |
| 581 } | 580 } |
| 582 } // namespace internal | 581 } // namespace internal |
| 583 } // namespace v8 | 582 } // namespace v8 |
| OLD | NEW |