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 #include "src/base/adapters.h" | 7 #include "src/base/adapters.h" |
8 #include "src/base/utils/random-number-generator.h" | 8 #include "src/base/utils/random-number-generator.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 case kAtomicExchangeInt8: | 329 case kAtomicExchangeInt8: |
330 case kAtomicExchangeUint8: | 330 case kAtomicExchangeUint8: |
331 case kAtomicExchangeInt16: | 331 case kAtomicExchangeInt16: |
332 case kAtomicExchangeUint16: | 332 case kAtomicExchangeUint16: |
333 case kAtomicExchangeWord32: | 333 case kAtomicExchangeWord32: |
334 case kAtomicCompareExchangeInt8: | 334 case kAtomicCompareExchangeInt8: |
335 case kAtomicCompareExchangeUint8: | 335 case kAtomicCompareExchangeUint8: |
336 case kAtomicCompareExchangeInt16: | 336 case kAtomicCompareExchangeInt16: |
337 case kAtomicCompareExchangeUint16: | 337 case kAtomicCompareExchangeUint16: |
338 case kAtomicCompareExchangeWord32: | 338 case kAtomicCompareExchangeWord32: |
| 339 case kAtomicAddInt8: |
| 340 case kAtomicAddUint8: |
| 341 case kAtomicAddInt16: |
| 342 case kAtomicAddUint16: |
| 343 case kAtomicAddWord32: |
| 344 case kAtomicSubInt8: |
| 345 case kAtomicSubUint8: |
| 346 case kAtomicSubInt16: |
| 347 case kAtomicSubUint16: |
| 348 case kAtomicSubWord32: |
| 349 case kAtomicAndInt8: |
| 350 case kAtomicAndUint8: |
| 351 case kAtomicAndInt16: |
| 352 case kAtomicAndUint16: |
| 353 case kAtomicAndWord32: |
| 354 case kAtomicOrInt8: |
| 355 case kAtomicOrUint8: |
| 356 case kAtomicOrInt16: |
| 357 case kAtomicOrUint16: |
| 358 case kAtomicOrWord32: |
| 359 case kAtomicXorInt8: |
| 360 case kAtomicXorUint8: |
| 361 case kAtomicXorInt16: |
| 362 case kAtomicXorUint16: |
| 363 case kAtomicXorWord32: |
339 return kHasSideEffect; | 364 return kHasSideEffect; |
340 | 365 |
341 #define CASE(Name) case k##Name: | 366 #define CASE(Name) case k##Name: |
342 TARGET_ARCH_OPCODE_LIST(CASE) | 367 TARGET_ARCH_OPCODE_LIST(CASE) |
343 #undef CASE | 368 #undef CASE |
344 return GetTargetInstructionFlags(instr); | 369 return GetTargetInstructionFlags(instr); |
345 } | 370 } |
346 | 371 |
347 UNREACHABLE(); | 372 UNREACHABLE(); |
348 return kNoOpcodeFlags; | 373 return kNoOpcodeFlags; |
(...skipping 17 matching lines...) Expand all Loading... |
366 } | 391 } |
367 } | 392 } |
368 | 393 |
369 node->set_total_latency(max_latency + node->latency()); | 394 node->set_total_latency(max_latency + node->latency()); |
370 } | 395 } |
371 } | 396 } |
372 | 397 |
373 } // namespace compiler | 398 } // namespace compiler |
374 } // namespace internal | 399 } // namespace internal |
375 } // namespace v8 | 400 } // namespace v8 |
OLD | NEW |