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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 case kAtomicStoreWord8: | 324 case kAtomicStoreWord8: |
325 case kAtomicStoreWord16: | 325 case kAtomicStoreWord16: |
326 case kAtomicStoreWord32: | 326 case kAtomicStoreWord32: |
327 return kHasSideEffect; | 327 return kHasSideEffect; |
328 | 328 |
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: |
| 335 case kAtomicCompareExchangeUint8: |
| 336 case kAtomicCompareExchangeInt16: |
| 337 case kAtomicCompareExchangeUint16: |
| 338 case kAtomicCompareExchangeWord32: |
334 return kHasSideEffect; | 339 return kHasSideEffect; |
335 | 340 |
336 #define CASE(Name) case k##Name: | 341 #define CASE(Name) case k##Name: |
337 TARGET_ARCH_OPCODE_LIST(CASE) | 342 TARGET_ARCH_OPCODE_LIST(CASE) |
338 #undef CASE | 343 #undef CASE |
339 return GetTargetInstructionFlags(instr); | 344 return GetTargetInstructionFlags(instr); |
340 } | 345 } |
341 | 346 |
342 UNREACHABLE(); | 347 UNREACHABLE(); |
343 return kNoOpcodeFlags; | 348 return kNoOpcodeFlags; |
(...skipping 17 matching lines...) Expand all Loading... |
361 } | 366 } |
362 } | 367 } |
363 | 368 |
364 node->set_total_latency(max_latency + node->latency()); | 369 node->set_total_latency(max_latency + node->latency()); |
365 } | 370 } |
366 } | 371 } |
367 | 372 |
368 } // namespace compiler | 373 } // namespace compiler |
369 } // namespace internal | 374 } // namespace internal |
370 } // namespace v8 | 375 } // namespace v8 |
OLD | NEW |