OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 #include "src/compiler.h" | 6 #include "src/compiler.h" |
7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
8 #include "src/compiler/frame.h" | 8 #include "src/compiler/frame.h" |
9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
10 #include "src/compiler/node.h" | 10 #include "src/compiler/node.h" |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 case Runtime::kTraceEnter: | 238 case Runtime::kTraceEnter: |
239 case Runtime::kTraceExit: | 239 case Runtime::kTraceExit: |
240 return 0; | 240 return 0; |
241 case Runtime::kInlineArguments: | 241 case Runtime::kInlineArguments: |
242 case Runtime::kInlineCallFunction: | 242 case Runtime::kInlineCallFunction: |
243 case Runtime::kInlineDefaultConstructorCallSuper: | 243 case Runtime::kInlineDefaultConstructorCallSuper: |
244 case Runtime::kInlineGetCallerJSFunction: | 244 case Runtime::kInlineGetCallerJSFunction: |
245 case Runtime::kInlineGetPrototype: | 245 case Runtime::kInlineGetPrototype: |
246 case Runtime::kInlineRegExpExec: | 246 case Runtime::kInlineRegExpExec: |
247 case Runtime::kInlineToObject: | 247 case Runtime::kInlineToObject: |
| 248 case Runtime::kInlineToPrimitive: |
| 249 case Runtime::kInlineToPrimitive_Number: |
| 250 case Runtime::kInlineToPrimitive_String: |
| 251 case Runtime::kInlineOrdinaryToPrimitive: |
| 252 case Runtime::kInlineToNumber: |
248 return 1; | 253 return 1; |
249 case Runtime::kInlineDeoptimizeNow: | 254 case Runtime::kInlineDeoptimizeNow: |
250 case Runtime::kInlineThrowNotDateError: | 255 case Runtime::kInlineThrowNotDateError: |
251 return 2; | 256 return 2; |
252 default: | 257 default: |
253 break; | 258 break; |
254 } | 259 } |
255 | 260 |
256 // Most inlined runtime functions (except the ones listed above) can be called | 261 // Most inlined runtime functions (except the ones listed above) can be called |
257 // without a FrameState or will be lowered by JSIntrinsicLowering internally. | 262 // without a FrameState or will be lowered by JSIntrinsicLowering internally. |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 return LinkageLocation::ForCalleeFrameSlot(spill_index); | 519 return LinkageLocation::ForCalleeFrameSlot(spill_index); |
515 } else { | 520 } else { |
516 // Parameter. Use the assigned location from the incoming call descriptor. | 521 // Parameter. Use the assigned location from the incoming call descriptor. |
517 int parameter_index = 1 + index; // skip index 0, which is the target. | 522 int parameter_index = 1 + index; // skip index 0, which is the target. |
518 return incoming_->GetInputLocation(parameter_index); | 523 return incoming_->GetInputLocation(parameter_index); |
519 } | 524 } |
520 } | 525 } |
521 } // namespace compiler | 526 } // namespace compiler |
522 } // namespace internal | 527 } // namespace internal |
523 } // namespace v8 | 528 } // namespace v8 |
OLD | NEW |