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 #include "src/compiler/state-values-utils.h" | 9 #include "src/compiler/state-values-utils.h" |
10 | 10 |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 block_starts_(zone()), | 675 block_starts_(zone()), |
676 constants_(ConstantMap::key_compare(), | 676 constants_(ConstantMap::key_compare(), |
677 ConstantMap::allocator_type(zone())), | 677 ConstantMap::allocator_type(zone())), |
678 immediates_(zone()), | 678 immediates_(zone()), |
679 instructions_(zone()), | 679 instructions_(zone()), |
680 next_virtual_register_(0), | 680 next_virtual_register_(0), |
681 reference_maps_(zone()), | 681 reference_maps_(zone()), |
682 representations_(zone()), | 682 representations_(zone()), |
683 deoptimization_entries_(zone()) { | 683 deoptimization_entries_(zone()) { |
684 block_starts_.reserve(instruction_blocks_->size()); | 684 block_starts_.reserve(instruction_blocks_->size()); |
685 | |
686 #if DEBUG | |
687 ValidateEdgeSplitForm(); | |
688 #endif | |
689 } | 685 } |
690 | 686 |
691 | 687 |
692 int InstructionSequence::NextVirtualRegister() { | 688 int InstructionSequence::NextVirtualRegister() { |
693 int virtual_register = next_virtual_register_++; | 689 int virtual_register = next_virtual_register_++; |
694 CHECK_NE(virtual_register, InstructionOperand::kInvalidVirtualRegister); | 690 CHECK_NE(virtual_register, InstructionOperand::kInvalidVirtualRegister); |
695 return virtual_register; | 691 return virtual_register; |
696 } | 692 } |
697 | 693 |
698 | 694 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
997 } | 993 } |
998 for (int i = 0; i < code.InstructionBlockCount(); i++) { | 994 for (int i = 0; i < code.InstructionBlockCount(); i++) { |
999 printable.sequence_->PrintBlock(printable.register_configuration_, i); | 995 printable.sequence_->PrintBlock(printable.register_configuration_, i); |
1000 } | 996 } |
1001 return os; | 997 return os; |
1002 } | 998 } |
1003 | 999 |
1004 } // namespace compiler | 1000 } // namespace compiler |
1005 } // namespace internal | 1001 } // namespace internal |
1006 } // namespace v8 | 1002 } // namespace v8 |
OLD | NEW |