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/instruction-selector.h" | 5 #include "src/compiler/instruction-selector.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "src/base/adapters.h" | 9 #include "src/base/adapters.h" |
10 #include "src/compiler/instruction-selector-impl.h" | 10 #include "src/compiler/instruction-selector-impl.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 while (start-- > end) { | 80 while (start-- > end) { |
81 AddInstruction(instructions_[start]); | 81 AddInstruction(instructions_[start]); |
82 } | 82 } |
83 EndBlock(RpoNumber::FromInt(block->rpo_number())); | 83 EndBlock(RpoNumber::FromInt(block->rpo_number())); |
84 } | 84 } |
85 #if DEBUG | 85 #if DEBUG |
86 sequence()->ValidateSSA(); | 86 sequence()->ValidateSSA(); |
87 #endif | 87 #endif |
88 } | 88 } |
89 | 89 |
90 | |
91 void InstructionSelector::StartBlock(RpoNumber rpo) { | 90 void InstructionSelector::StartBlock(RpoNumber rpo) { |
92 if (FLAG_turbo_instruction_scheduling && | 91 if (FLAG_turbo_instruction_scheduling && |
93 InstructionScheduler::SchedulerSupported()) { | 92 InstructionScheduler::SchedulerSupported()) { |
94 DCHECK_NOT_NULL(scheduler_); | 93 DCHECK_NOT_NULL(scheduler_); |
95 scheduler_->StartBlock(rpo); | 94 scheduler_->StartBlock(rpo); |
96 } else { | 95 } else { |
97 sequence()->StartBlock(rpo); | 96 sequence()->StartBlock(rpo); |
98 } | 97 } |
99 } | 98 } |
100 | 99 |
(...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1807 return new (instruction_zone()) FrameStateDescriptor( | 1806 return new (instruction_zone()) FrameStateDescriptor( |
1808 instruction_zone(), state_info.type(), state_info.bailout_id(), | 1807 instruction_zone(), state_info.type(), state_info.bailout_id(), |
1809 state_info.state_combine(), parameters, locals, stack, | 1808 state_info.state_combine(), parameters, locals, stack, |
1810 state_info.shared_info(), outer_state); | 1809 state_info.shared_info(), outer_state); |
1811 } | 1810 } |
1812 | 1811 |
1813 | 1812 |
1814 } // namespace compiler | 1813 } // namespace compiler |
1815 } // namespace internal | 1814 } // namespace internal |
1816 } // namespace v8 | 1815 } // namespace v8 |
OLD | NEW |