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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 case kX64Movsxlq: | 148 case kX64Movsxlq: |
149 DCHECK(instr->InputCount() >= 1); | 149 DCHECK(instr->InputCount() >= 1); |
150 return instr->InputAt(0)->IsRegister() ? kNoOpcodeFlags | 150 return instr->InputAt(0)->IsRegister() ? kNoOpcodeFlags |
151 : kIsLoadOperation; | 151 : kIsLoadOperation; |
152 | 152 |
153 case kX64Movb: | 153 case kX64Movb: |
154 case kX64Movw: | 154 case kX64Movw: |
155 return kHasSideEffect; | 155 return kHasSideEffect; |
156 | 156 |
157 case kX64Movl: | 157 case kX64Movl: |
158 case kX64TrapMovl: | |
159 if (instr->HasOutput()) { | 158 if (instr->HasOutput()) { |
160 DCHECK(instr->InputCount() >= 1); | 159 DCHECK(instr->InputCount() >= 1); |
161 return instr->InputAt(0)->IsRegister() ? kNoOpcodeFlags | 160 return instr->InputAt(0)->IsRegister() ? kNoOpcodeFlags |
162 : kIsLoadOperation; | 161 : kIsLoadOperation; |
163 } else { | 162 } else { |
164 return kHasSideEffect; | 163 return kHasSideEffect; |
165 } | 164 } |
166 | 165 |
167 case kX64Movq: | 166 case kX64Movq: |
168 case kX64Movsd: | 167 case kX64Movsd: |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 case kArchTruncateDoubleToI: | 262 case kArchTruncateDoubleToI: |
264 return 6; | 263 return 6; |
265 default: | 264 default: |
266 return 1; | 265 return 1; |
267 } | 266 } |
268 } | 267 } |
269 | 268 |
270 } // namespace compiler | 269 } // namespace compiler |
271 } // namespace internal | 270 } // namespace internal |
272 } // namespace v8 | 271 } // namespace v8 |
OLD | NEW |