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