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 kIA32Add: | 17 case kIA32Add: |
18 case kIA32And: | 18 case kIA32And: |
19 case kIA32Cmp: | 19 case kIA32Cmp: |
| 20 case kIA32Cmp16: |
| 21 case kIA32Cmp8: |
20 case kIA32Test: | 22 case kIA32Test: |
| 23 case kIA32Test16: |
| 24 case kIA32Test8: |
21 case kIA32Or: | 25 case kIA32Or: |
22 case kIA32Xor: | 26 case kIA32Xor: |
23 case kIA32Sub: | 27 case kIA32Sub: |
24 case kIA32Imul: | 28 case kIA32Imul: |
25 case kIA32ImulHigh: | 29 case kIA32ImulHigh: |
26 case kIA32UmulHigh: | 30 case kIA32UmulHigh: |
27 case kIA32Idiv: | 31 case kIA32Idiv: |
28 case kIA32Udiv: | 32 case kIA32Udiv: |
29 case kIA32Not: | 33 case kIA32Not: |
30 case kIA32Neg: | 34 case kIA32Neg: |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 140 |
137 | 141 |
138 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { | 142 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { |
139 // TODO(all): Add instruction cost modeling. | 143 // TODO(all): Add instruction cost modeling. |
140 return 1; | 144 return 1; |
141 } | 145 } |
142 | 146 |
143 } // namespace compiler | 147 } // namespace compiler |
144 } // namespace internal | 148 } // namespace internal |
145 } // namespace v8 | 149 } // namespace v8 |
OLD | NEW |