| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 | 247 |
| 248 case kCheckedStoreWord8: | 248 case kCheckedStoreWord8: |
| 249 case kCheckedStoreWord16: | 249 case kCheckedStoreWord16: |
| 250 case kCheckedStoreWord32: | 250 case kCheckedStoreWord32: |
| 251 case kCheckedStoreWord64: | 251 case kCheckedStoreWord64: |
| 252 case kCheckedStoreFloat32: | 252 case kCheckedStoreFloat32: |
| 253 case kCheckedStoreFloat64: | 253 case kCheckedStoreFloat64: |
| 254 case kArchStoreWithWriteBarrier: | 254 case kArchStoreWithWriteBarrier: |
| 255 return kHasSideEffect; | 255 return kHasSideEffect; |
| 256 | 256 |
| 257 case kAtomicLoadInt8: | |
| 258 case kAtomicLoadUint8: | |
| 259 case kAtomicLoadInt16: | |
| 260 case kAtomicLoadUint16: | |
| 261 case kAtomicLoadWord32: | |
| 262 return kIsLoadOperation; | |
| 263 | |
| 264 #define CASE(Name) case k##Name: | 257 #define CASE(Name) case k##Name: |
| 265 TARGET_ARCH_OPCODE_LIST(CASE) | 258 TARGET_ARCH_OPCODE_LIST(CASE) |
| 266 #undef CASE | 259 #undef CASE |
| 267 return GetTargetInstructionFlags(instr); | 260 return GetTargetInstructionFlags(instr); |
| 268 } | 261 } |
| 269 | 262 |
| 270 UNREACHABLE(); | 263 UNREACHABLE(); |
| 271 return kNoOpcodeFlags; | 264 return kNoOpcodeFlags; |
| 272 } | 265 } |
| 273 | 266 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 } | 309 } |
| 317 } | 310 } |
| 318 | 311 |
| 319 node->set_total_latency(max_latency + node->latency()); | 312 node->set_total_latency(max_latency + node->latency()); |
| 320 } | 313 } |
| 321 } | 314 } |
| 322 | 315 |
| 323 } // namespace compiler | 316 } // namespace compiler |
| 324 } // namespace internal | 317 } // namespace internal |
| 325 } // namespace v8 | 318 } // namespace v8 |
| OLD | NEW |