| 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 case kArchPrepareCallCFunction: | 277 case kArchPrepareCallCFunction: |
| 278 case kArchPrepareTailCall: | 278 case kArchPrepareTailCall: |
| 279 case kArchCallCFunction: | 279 case kArchCallCFunction: |
| 280 case kArchCallCodeObject: | 280 case kArchCallCodeObject: |
| 281 case kArchCallJSFunction: | 281 case kArchCallJSFunction: |
| 282 return kHasSideEffect; | 282 return kHasSideEffect; |
| 283 | 283 |
| 284 case kArchTailCallCodeObjectFromJSFunction: | 284 case kArchTailCallCodeObjectFromJSFunction: |
| 285 case kArchTailCallCodeObject: | 285 case kArchTailCallCodeObject: |
| 286 case kArchTailCallJSFunctionFromJSFunction: | 286 case kArchTailCallJSFunctionFromJSFunction: |
| 287 case kArchTailCallJSFunction: | |
| 288 case kArchTailCallAddress: | 287 case kArchTailCallAddress: |
| 289 return kHasSideEffect | kIsBlockTerminator; | 288 return kHasSideEffect | kIsBlockTerminator; |
| 290 | 289 |
| 291 case kArchDeoptimize: | 290 case kArchDeoptimize: |
| 292 case kArchJmp: | 291 case kArchJmp: |
| 293 case kArchLookupSwitch: | 292 case kArchLookupSwitch: |
| 294 case kArchTableSwitch: | 293 case kArchTableSwitch: |
| 295 case kArchRet: | 294 case kArchRet: |
| 296 case kArchThrowTerminator: | 295 case kArchThrowTerminator: |
| 297 return kIsBlockTerminator; | 296 return kIsBlockTerminator; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 } | 354 } |
| 356 } | 355 } |
| 357 | 356 |
| 358 node->set_total_latency(max_latency + node->latency()); | 357 node->set_total_latency(max_latency + node->latency()); |
| 359 } | 358 } |
| 360 } | 359 } |
| 361 | 360 |
| 362 } // namespace compiler | 361 } // namespace compiler |
| 363 } // namespace internal | 362 } // namespace internal |
| 364 } // namespace v8 | 363 } // namespace v8 |
| OLD | NEW |