| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 case kX64Lea32: | 124 case kX64Lea32: |
| 125 case kX64Lea: | 125 case kX64Lea: |
| 126 case kX64Dec32: | 126 case kX64Dec32: |
| 127 case kX64Inc32: | 127 case kX64Inc32: |
| 128 return (instr->addressing_mode() == kMode_None) | 128 return (instr->addressing_mode() == kMode_None) |
| 129 ? kNoOpcodeFlags | 129 ? kNoOpcodeFlags |
| 130 : kIsLoadOperation | kHasSideEffect; | 130 : kIsLoadOperation | kHasSideEffect; |
| 131 | 131 |
| 132 case kX64Movsxbl: | 132 case kX64Movsxbl: |
| 133 case kX64Movzxbl: | 133 case kX64Movzxbl: |
| 134 case kX64Movsxbq: |
| 135 case kX64Movzxbq: |
| 134 case kX64Movsxwl: | 136 case kX64Movsxwl: |
| 135 case kX64Movzxwl: | 137 case kX64Movzxwl: |
| 138 case kX64Movsxwq: |
| 139 case kX64Movzxwq: |
| 136 case kX64Movsxlq: | 140 case kX64Movsxlq: |
| 137 DCHECK(instr->InputCount() >= 1); | 141 DCHECK(instr->InputCount() >= 1); |
| 138 return instr->InputAt(0)->IsRegister() ? kNoOpcodeFlags | 142 return instr->InputAt(0)->IsRegister() ? kNoOpcodeFlags |
| 139 : kIsLoadOperation; | 143 : kIsLoadOperation; |
| 140 | 144 |
| 141 case kX64Movb: | 145 case kX64Movb: |
| 142 case kX64Movw: | 146 case kX64Movw: |
| 143 return kHasSideEffect; | 147 return kHasSideEffect; |
| 144 | 148 |
| 145 case kX64Movl: | 149 case kX64Movl: |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 185 |
| 182 | 186 |
| 183 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { | 187 int InstructionScheduler::GetInstructionLatency(const Instruction* instr) { |
| 184 // TODO(all): Add instruction cost modeling. | 188 // TODO(all): Add instruction cost modeling. |
| 185 return 1; | 189 return 1; |
| 186 } | 190 } |
| 187 | 191 |
| 188 } // namespace compiler | 192 } // namespace compiler |
| 189 } // namespace internal | 193 } // namespace internal |
| 190 } // namespace v8 | 194 } // namespace v8 |
| OLD | NEW |