| 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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 for (auto const block : *blocks) { | 489 for (auto const block : *blocks) { |
| 490 if (block->IsDeferred()) { | 490 if (block->IsDeferred()) { |
| 491 block->set_ao_number(RpoNumber::FromInt(ao++)); | 491 block->set_ao_number(RpoNumber::FromInt(ao++)); |
| 492 } | 492 } |
| 493 } | 493 } |
| 494 } | 494 } |
| 495 | 495 |
| 496 | 496 |
| 497 InstructionSequence::InstructionSequence(Isolate* isolate, | 497 InstructionSequence::InstructionSequence(Isolate* isolate, |
| 498 Zone* instruction_zone, | 498 Zone* instruction_zone, |
| 499 InstructionBlocks* instruction_blocks) | 499 InstructionBlocks* instruction_blocks, |
| 500 Frame* frame) |
| 500 : isolate_(isolate), | 501 : isolate_(isolate), |
| 501 zone_(instruction_zone), | 502 zone_(instruction_zone), |
| 502 instruction_blocks_(instruction_blocks), | 503 instruction_blocks_(instruction_blocks), |
| 504 frame_(frame), |
| 503 source_positions_(zone()), | 505 source_positions_(zone()), |
| 504 block_starts_(zone()), | 506 block_starts_(zone()), |
| 505 constants_(ConstantMap::key_compare(), | 507 constants_(ConstantMap::key_compare(), |
| 506 ConstantMap::allocator_type(zone())), | 508 ConstantMap::allocator_type(zone())), |
| 507 immediates_(zone()), | 509 immediates_(zone()), |
| 508 instructions_(zone()), | 510 instructions_(zone()), |
| 509 next_virtual_register_(0), | 511 next_virtual_register_(0), |
| 510 reference_maps_(zone()), | 512 reference_maps_(zone()), |
| 511 representations_(zone()), | 513 representations_(zone()), |
| 512 deoptimization_entries_(zone()) { | 514 deoptimization_entries_(zone()) { |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 os << " B" << succ.ToInt(); | 810 os << " B" << succ.ToInt(); |
| 809 } | 811 } |
| 810 os << "\n"; | 812 os << "\n"; |
| 811 } | 813 } |
| 812 return os; | 814 return os; |
| 813 } | 815 } |
| 814 | 816 |
| 815 } // namespace compiler | 817 } // namespace compiler |
| 816 } // namespace internal | 818 } // namespace internal |
| 817 } // namespace v8 | 819 } // namespace v8 |
| OLD | NEW |