| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
| 6 #include "src/compiler/graph.h" | 6 #include "src/compiler/graph.h" |
| 7 #include "src/compiler/instruction.h" | 7 #include "src/compiler/instruction.h" |
| 8 #include "src/compiler/schedule.h" | 8 #include "src/compiler/schedule.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 ao_number_(rpo_number), | 410 ao_number_(rpo_number), |
| 411 rpo_number_(rpo_number), | 411 rpo_number_(rpo_number), |
| 412 loop_header_(loop_header), | 412 loop_header_(loop_header), |
| 413 loop_end_(loop_end), | 413 loop_end_(loop_end), |
| 414 code_start_(-1), | 414 code_start_(-1), |
| 415 code_end_(-1), | 415 code_end_(-1), |
| 416 deferred_(deferred), | 416 deferred_(deferred), |
| 417 handler_(handler), | 417 handler_(handler), |
| 418 needs_frame_(false), | 418 needs_frame_(false), |
| 419 must_construct_frame_(false), | 419 must_construct_frame_(false), |
| 420 must_deconstruct_frame_(false) {} | 420 must_deconstruct_frame_(false), |
| 421 last_deferred_(RpoNumber::Invalid()) {} |
| 421 | 422 |
| 422 | 423 |
| 423 size_t InstructionBlock::PredecessorIndexOf(RpoNumber rpo_number) const { | 424 size_t InstructionBlock::PredecessorIndexOf(RpoNumber rpo_number) const { |
| 424 size_t j = 0; | 425 size_t j = 0; |
| 425 for (InstructionBlock::Predecessors::const_iterator i = predecessors_.begin(); | 426 for (InstructionBlock::Predecessors::const_iterator i = predecessors_.begin(); |
| 426 i != predecessors_.end(); ++i, ++j) { | 427 i != predecessors_.end(); ++i, ++j) { |
| 427 if (*i == rpo_number) break; | 428 if (*i == rpo_number) break; |
| 428 } | 429 } |
| 429 return j; | 430 return j; |
| 430 } | 431 } |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 os << " B" << succ.ToInt(); | 809 os << " B" << succ.ToInt(); |
| 809 } | 810 } |
| 810 os << "\n"; | 811 os << "\n"; |
| 811 } | 812 } |
| 812 return os; | 813 return os; |
| 813 } | 814 } |
| 814 | 815 |
| 815 } // namespace compiler | 816 } // namespace compiler |
| 816 } // namespace internal | 817 } // namespace internal |
| 817 } // namespace v8 | 818 } // namespace v8 |
| OLD | NEW |