| 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: | 20 case kIA32Cmp16: |
| 21 case kIA32Cmp8: | 21 case kIA32Cmp8: |
| 22 case kIA32Test: | 22 case kIA32Test: |
| 23 case kIA32Test16: | 23 case kIA32Test16: |
| 24 case kIA32Test8: | 24 case kIA32Test8: |
| 25 case kIA32Or: | 25 case kIA32Or: |
| 26 case kIA32Xor: | 26 case kIA32Xor: |
| 27 case kIA32Sub: | 27 case kIA32Sub: |
| 28 case kIA32Imul: | 28 case kIA32Imul: |
| 29 case kIA32ImulHigh: | 29 case kIA32ImulHigh: |
| 30 case kIA32Umul: |
| 30 case kIA32UmulHigh: | 31 case kIA32UmulHigh: |
| 31 case kIA32Not: | 32 case kIA32Not: |
| 32 case kIA32Neg: | 33 case kIA32Neg: |
| 33 case kIA32Shl: | 34 case kIA32Shl: |
| 34 case kIA32Shr: | 35 case kIA32Shr: |
| 35 case kIA32Sar: | 36 case kIA32Sar: |
| 36 case kIA32AddPair: | 37 case kIA32AddPair: |
| 37 case kIA32SubPair: | 38 case kIA32SubPair: |
| 38 case kIA32MulPair: | |
| 39 case kIA32ShlPair: | 39 case kIA32ShlPair: |
| 40 case kIA32ShrPair: | 40 case kIA32ShrPair: |
| 41 case kIA32SarPair: | 41 case kIA32SarPair: |
| 42 case kIA32Ror: | 42 case kIA32Ror: |
| 43 case kIA32Lzcnt: | 43 case kIA32Lzcnt: |
| 44 case kIA32Tzcnt: | 44 case kIA32Tzcnt: |
| 45 case kIA32Popcnt: | 45 case kIA32Popcnt: |
| 46 case kIA32Lea: | 46 case kIA32Lea: |
| 47 case kSSEFloat32Cmp: | 47 case kSSEFloat32Cmp: |
| 48 case kSSEFloat32Add: | 48 case kSSEFloat32Add: |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 case kArchTruncateDoubleToI: | 210 case kArchTruncateDoubleToI: |
| 211 return 9; | 211 return 9; |
| 212 default: | 212 default: |
| 213 return 1; | 213 return 1; |
| 214 } | 214 } |
| 215 } | 215 } |
| 216 | 216 |
| 217 } // namespace compiler | 217 } // namespace compiler |
| 218 } // namespace internal | 218 } // namespace internal |
| 219 } // namespace v8 | 219 } // namespace v8 |
| OLD | NEW |