| 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 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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: | 248 case Runtime::kInlineToPrimitive: |
| 249 case Runtime::kInlineToPrimitive_Number: | 249 case Runtime::kInlineToPrimitive_Number: |
| 250 case Runtime::kInlineToPrimitive_String: | 250 case Runtime::kInlineToPrimitive_String: |
| 251 case Runtime::kInlineOrdinaryToPrimitive: | 251 case Runtime::kInlineOrdinaryToPrimitive: |
| 252 case Runtime::kInlineToNumber: | 252 case Runtime::kInlineToNumber: |
| 253 case Runtime::kInlineToString: |
| 253 case Runtime::kInlineToName: | 254 case Runtime::kInlineToName: |
| 254 return 1; | 255 return 1; |
| 255 case Runtime::kInlineDeoptimizeNow: | 256 case Runtime::kInlineDeoptimizeNow: |
| 256 case Runtime::kInlineThrowNotDateError: | 257 case Runtime::kInlineThrowNotDateError: |
| 257 return 2; | 258 return 2; |
| 258 default: | 259 default: |
| 259 break; | 260 break; |
| 260 } | 261 } |
| 261 | 262 |
| 262 // Most inlined runtime functions (except the ones listed above) can be called | 263 // Most inlined runtime functions (except the ones listed above) can be called |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 return LinkageLocation::ForCalleeFrameSlot(spill_index); | 521 return LinkageLocation::ForCalleeFrameSlot(spill_index); |
| 521 } else { | 522 } else { |
| 522 // Parameter. Use the assigned location from the incoming call descriptor. | 523 // Parameter. Use the assigned location from the incoming call descriptor. |
| 523 int parameter_index = 1 + index; // skip index 0, which is the target. | 524 int parameter_index = 1 + index; // skip index 0, which is the target. |
| 524 return incoming_->GetInputLocation(parameter_index); | 525 return incoming_->GetInputLocation(parameter_index); |
| 525 } | 526 } |
| 526 } | 527 } |
| 527 } // namespace compiler | 528 } // namespace compiler |
| 528 } // namespace internal | 529 } // namespace internal |
| 529 } // namespace v8 | 530 } // namespace v8 |
| OLD | NEW |