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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 case kX64S128Zero: | 182 case kX64S128Zero: |
183 return (instr->addressing_mode() == kMode_None) | 183 return (instr->addressing_mode() == kMode_None) |
184 ? kNoOpcodeFlags | 184 ? kNoOpcodeFlags |
185 : kIsLoadOperation | kHasSideEffect; | 185 : kIsLoadOperation | kHasSideEffect; |
186 | 186 |
187 case kX64Idiv: | 187 case kX64Idiv: |
188 case kX64Idiv32: | 188 case kX64Idiv32: |
189 case kX64Udiv: | 189 case kX64Udiv: |
190 case kX64Udiv32: | 190 case kX64Udiv32: |
191 return (instr->addressing_mode() == kMode_None) | 191 return (instr->addressing_mode() == kMode_None) |
192 ? kMayNeedDeoptCheck | 192 ? kMayNeedDeoptOrTrapCheck |
193 : kMayNeedDeoptCheck | kIsLoadOperation | kHasSideEffect; | 193 : kMayNeedDeoptOrTrapCheck | kIsLoadOperation | kHasSideEffect; |
194 | 194 |
195 case kX64Movsxbl: | 195 case kX64Movsxbl: |
196 case kX64Movzxbl: | 196 case kX64Movzxbl: |
197 case kX64Movsxbq: | 197 case kX64Movsxbq: |
198 case kX64Movzxbq: | 198 case kX64Movzxbq: |
199 case kX64Movsxwl: | 199 case kX64Movsxwl: |
200 case kX64Movzxwl: | 200 case kX64Movzxwl: |
201 case kX64Movsxwq: | 201 case kX64Movsxwq: |
202 case kX64Movzxwq: | 202 case kX64Movzxwq: |
203 case kX64Movsxlq: | 203 case kX64Movsxlq: |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 case kArchTruncateDoubleToI: | 312 case kArchTruncateDoubleToI: |
313 return 6; | 313 return 6; |
314 default: | 314 default: |
315 return 1; | 315 return 1; |
316 } | 316 } |
317 } | 317 } |
318 | 318 |
319 } // namespace compiler | 319 } // namespace compiler |
320 } // namespace internal | 320 } // namespace internal |
321 } // namespace v8 | 321 } // namespace v8 |
OLD | NEW |