| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 case kArchPrepareTailCall: | 217 case kArchPrepareTailCall: |
| 218 case kArchCallCFunction: | 218 case kArchCallCFunction: |
| 219 case kArchCallCodeObject: | 219 case kArchCallCodeObject: |
| 220 case kArchCallJSFunction: | 220 case kArchCallJSFunction: |
| 221 return kHasSideEffect; | 221 return kHasSideEffect; |
| 222 | 222 |
| 223 case kArchTailCallCodeObjectFromJSFunction: | 223 case kArchTailCallCodeObjectFromJSFunction: |
| 224 case kArchTailCallCodeObject: | 224 case kArchTailCallCodeObject: |
| 225 case kArchTailCallJSFunctionFromJSFunction: | 225 case kArchTailCallJSFunctionFromJSFunction: |
| 226 case kArchTailCallJSFunction: | 226 case kArchTailCallJSFunction: |
| 227 case kArchTailCallAddress: |
| 227 return kHasSideEffect | kIsBlockTerminator; | 228 return kHasSideEffect | kIsBlockTerminator; |
| 228 | 229 |
| 229 case kArchDeoptimize: | 230 case kArchDeoptimize: |
| 230 case kArchJmp: | 231 case kArchJmp: |
| 231 case kArchLookupSwitch: | 232 case kArchLookupSwitch: |
| 232 case kArchTableSwitch: | 233 case kArchTableSwitch: |
| 233 case kArchRet: | 234 case kArchRet: |
| 234 case kArchThrowTerminator: | 235 case kArchThrowTerminator: |
| 235 return kIsBlockTerminator; | 236 return kIsBlockTerminator; |
| 236 | 237 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 } | 309 } |
| 309 } | 310 } |
| 310 | 311 |
| 311 node->set_total_latency(max_latency + node->latency()); | 312 node->set_total_latency(max_latency + node->latency()); |
| 312 } | 313 } |
| 313 } | 314 } |
| 314 | 315 |
| 315 } // namespace compiler | 316 } // namespace compiler |
| 316 } // namespace internal | 317 } // namespace internal |
| 317 } // namespace v8 | 318 } // namespace v8 |
| OLD | NEW |