| 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 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 case kArmSimd1x4AnyTrue: | 209 case kArmSimd1x4AnyTrue: |
| 210 case kArmSimd1x4AllTrue: | 210 case kArmSimd1x4AllTrue: |
| 211 case kArmSimd1x8AnyTrue: | 211 case kArmSimd1x8AnyTrue: |
| 212 case kArmSimd1x8AllTrue: | 212 case kArmSimd1x8AllTrue: |
| 213 case kArmSimd1x16AnyTrue: | 213 case kArmSimd1x16AnyTrue: |
| 214 case kArmSimd1x16AllTrue: | 214 case kArmSimd1x16AllTrue: |
| 215 return kNoOpcodeFlags; | 215 return kNoOpcodeFlags; |
| 216 | 216 |
| 217 case kArmVldrF32: | 217 case kArmVldrF32: |
| 218 case kArmVldrF64: | 218 case kArmVldrF64: |
| 219 case kArmVld1F64: |
| 219 case kArmLdrb: | 220 case kArmLdrb: |
| 220 case kArmLdrsb: | 221 case kArmLdrsb: |
| 221 case kArmLdrh: | 222 case kArmLdrh: |
| 222 case kArmLdrsh: | 223 case kArmLdrsh: |
| 223 case kArmLdr: | 224 case kArmLdr: |
| 224 return kIsLoadOperation; | 225 return kIsLoadOperation; |
| 225 | 226 |
| 226 case kArmVstrF32: | 227 case kArmVstrF32: |
| 227 case kArmVstrF64: | 228 case kArmVstrF64: |
| 229 case kArmVst1F64: |
| 228 case kArmStrb: | 230 case kArmStrb: |
| 229 case kArmStrh: | 231 case kArmStrh: |
| 230 case kArmStr: | 232 case kArmStr: |
| 231 case kArmPush: | 233 case kArmPush: |
| 232 case kArmPoke: | 234 case kArmPoke: |
| 233 return kHasSideEffect; | 235 return kHasSideEffect; |
| 234 | 236 |
| 235 #define CASE(Name) case k##Name: | 237 #define CASE(Name) case k##Name: |
| 236 COMMON_ARCH_OPCODE_LIST(CASE) | 238 COMMON_ARCH_OPCODE_LIST(CASE) |
| 237 #undef CASE | 239 #undef CASE |
| 238 // Already covered in architecture independent code. | 240 // Already covered in architecture independent code. |
| 239 UNREACHABLE(); | 241 UNREACHABLE(); |
| 240 } | 242 } |
| 241 | 243 |
| 242 UNREACHABLE(); | 244 UNREACHABLE(); |
| 243 return kNoOpcodeFlags; | 245 return kNoOpcodeFlags; |
| 244 } | 246 } |
| 245 | 247 |
| 246 | 248 |
| 247 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { | 249 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { |
| 248 // TODO(all): Add instruction cost modeling. | 250 // TODO(all): Add instruction cost modeling. |
| 249 return 1; | 251 return 1; |
| 250 } | 252 } |
| 251 | 253 |
| 252 } // namespace compiler | 254 } // namespace compiler |
| 253 } // namespace internal | 255 } // namespace internal |
| 254 } // namespace v8 | 256 } // namespace v8 |
| OLD | NEW |