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/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
6 #include "src/code-stubs.h" | 6 #include "src/code-stubs.h" |
7 #include "src/compiler.h" | 7 #include "src/compiler.h" |
8 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
9 #include "src/compiler/frame.h" | 9 #include "src/compiler/frame.h" |
10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 case Runtime::kInlineToLength: | 173 case Runtime::kInlineToLength: |
174 case Runtime::kInlineToName: | 174 case Runtime::kInlineToName: |
175 case Runtime::kInlineToNumber: | 175 case Runtime::kInlineToNumber: |
176 case Runtime::kInlineToObject: | 176 case Runtime::kInlineToObject: |
177 case Runtime::kInlineToPrimitive_Number: | 177 case Runtime::kInlineToPrimitive_Number: |
178 case Runtime::kInlineToPrimitive_String: | 178 case Runtime::kInlineToPrimitive_String: |
179 case Runtime::kInlineToPrimitive: | 179 case Runtime::kInlineToPrimitive: |
180 case Runtime::kInlineToString: | 180 case Runtime::kInlineToString: |
181 return 1; | 181 return 1; |
182 case Runtime::kInlineCall: | 182 case Runtime::kInlineCall: |
183 case Runtime::kInlineTailCall: | |
184 case Runtime::kInlineDeoptimizeNow: | 183 case Runtime::kInlineDeoptimizeNow: |
185 case Runtime::kInlineThrowNotDateError: | 184 case Runtime::kInlineThrowNotDateError: |
186 return 2; | 185 return 2; |
187 default: | 186 default: |
188 break; | 187 break; |
189 } | 188 } |
190 | 189 |
191 // Most inlined runtime functions (except the ones listed above) can be called | 190 // Most inlined runtime functions (except the ones listed above) can be called |
192 // without a FrameState or will be lowered by JSIntrinsicLowering internally. | 191 // without a FrameState or will be lowered by JSIntrinsicLowering internally. |
193 const Runtime::Function* const f = Runtime::FunctionForId(function); | 192 const Runtime::Function* const f = Runtime::FunctionForId(function); |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 } else { | 445 } else { |
447 DCHECK(loc == regloc(kContextRegister)); | 446 DCHECK(loc == regloc(kContextRegister)); |
448 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot); | 447 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot); |
449 } | 448 } |
450 } | 449 } |
451 | 450 |
452 | 451 |
453 } // namespace compiler | 452 } // namespace compiler |
454 } // namespace internal | 453 } // namespace internal |
455 } // namespace v8 | 454 } // namespace v8 |
OLD | NEW |