OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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-scheduler.h" | 5 #include "src/compiler/instruction-scheduler.h" |
6 | 6 |
7 namespace v8 { | 7 namespace v8 { |
8 namespace internal { | 8 namespace internal { |
9 namespace compiler { | 9 namespace compiler { |
10 | 10 |
11 bool InstructionScheduler::SchedulerSupported() { return true; } | 11 bool InstructionScheduler::SchedulerSupported() { return true; } |
12 | 12 |
13 | 13 |
14 int InstructionScheduler::GetTargetInstructionFlags( | 14 int InstructionScheduler::GetTargetInstructionFlags( |
15 const Instruction* instr) const { | 15 const Instruction* instr) const { |
16 switch (instr->arch_opcode()) { | 16 switch (instr->arch_opcode()) { |
17 case kX64Add: | 17 case kX64Add: |
18 case kX64Add32: | 18 case kX64Add32: |
19 case kX64And: | 19 case kX64And: |
20 case kX64And32: | 20 case kX64And32: |
21 case kX64Cmp: | 21 case kX64Cmp: |
22 case kX64Cmp32: | 22 case kX64Cmp32: |
| 23 case kX64Cmp16: |
| 24 case kX64Cmp8: |
23 case kX64Test: | 25 case kX64Test: |
24 case kX64Test32: | 26 case kX64Test32: |
| 27 case kX64Test16: |
| 28 case kX64Test8: |
25 case kX64Or: | 29 case kX64Or: |
26 case kX64Or32: | 30 case kX64Or32: |
27 case kX64Xor: | 31 case kX64Xor: |
28 case kX64Xor32: | 32 case kX64Xor32: |
29 case kX64Sub: | 33 case kX64Sub: |
30 case kX64Sub32: | 34 case kX64Sub32: |
31 case kX64Imul: | 35 case kX64Imul: |
32 case kX64Imul32: | 36 case kX64Imul32: |
33 case kX64ImulHigh32: | 37 case kX64ImulHigh32: |
34 case kX64UmulHigh32: | 38 case kX64UmulHigh32: |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 181 |
178 | 182 |
179 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { | 183 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { |
180 // TODO(all): Add instruction cost modeling. | 184 // TODO(all): Add instruction cost modeling. |
181 return 1; | 185 return 1; |
182 } | 186 } |
183 | 187 |
184 } // namespace compiler | 188 } // namespace compiler |
185 } // namespace internal | 189 } // namespace internal |
186 } // namespace v8 | 190 } // namespace v8 |
OLD | NEW |