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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 case Runtime::kStringEqual: | 157 case Runtime::kStringEqual: |
158 case Runtime::kStringNotEqual: | 158 case Runtime::kStringNotEqual: |
159 case Runtime::kStringLessThan: | 159 case Runtime::kStringLessThan: |
160 case Runtime::kStringLessThanOrEqual: | 160 case Runtime::kStringLessThanOrEqual: |
161 case Runtime::kStringGreaterThan: | 161 case Runtime::kStringGreaterThan: |
162 case Runtime::kStringGreaterThanOrEqual: | 162 case Runtime::kStringGreaterThanOrEqual: |
163 case Runtime::kToFastProperties: // TODO(conradw): Is it safe? | 163 case Runtime::kToFastProperties: // TODO(conradw): Is it safe? |
164 case Runtime::kTraceEnter: | 164 case Runtime::kTraceEnter: |
165 case Runtime::kTraceExit: | 165 case Runtime::kTraceExit: |
166 return 0; | 166 return 0; |
| 167 case Runtime::kInlineCall: |
167 case Runtime::kInlineGetPrototype: | 168 case Runtime::kInlineGetPrototype: |
168 case Runtime::kInlineNewObject: | 169 case Runtime::kInlineNewObject: |
169 case Runtime::kInlineRegExpConstructResult: | 170 case Runtime::kInlineRegExpConstructResult: |
170 case Runtime::kInlineRegExpExec: | 171 case Runtime::kInlineRegExpExec: |
171 case Runtime::kInlineSubString: | 172 case Runtime::kInlineSubString: |
172 case Runtime::kInlineToInteger: | 173 case Runtime::kInlineToInteger: |
173 case Runtime::kInlineToLength: | 174 case Runtime::kInlineToLength: |
174 case Runtime::kInlineToName: | 175 case Runtime::kInlineToName: |
175 case Runtime::kInlineToNumber: | 176 case Runtime::kInlineToNumber: |
176 case Runtime::kInlineToObject: | 177 case Runtime::kInlineToObject: |
177 case Runtime::kInlineToPrimitive: | 178 case Runtime::kInlineToPrimitive: |
178 case Runtime::kInlineToPrimitive_Number: | 179 case Runtime::kInlineToPrimitive_Number: |
179 case Runtime::kInlineToPrimitive_String: | 180 case Runtime::kInlineToPrimitive_String: |
180 case Runtime::kInlineToString: | 181 case Runtime::kInlineToString: |
181 return 1; | 182 return 1; |
182 case Runtime::kInlineCall: | |
183 case Runtime::kInlineDeoptimizeNow: | 183 case Runtime::kInlineDeoptimizeNow: |
184 case Runtime::kInlineThrowNotDateError: | 184 case Runtime::kInlineThrowNotDateError: |
185 return 2; | 185 return 2; |
186 default: | 186 default: |
187 break; | 187 break; |
188 } | 188 } |
189 | 189 |
190 // 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 |
191 // without a FrameState or will be lowered by JSIntrinsicLowering internally. | 191 // without a FrameState or will be lowered by JSIntrinsicLowering internally. |
192 const Runtime::Function* const f = Runtime::FunctionForId(function); | 192 const Runtime::Function* const f = Runtime::FunctionForId(function); |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 } else { | 519 } else { |
520 DCHECK(loc == regloc(kContextRegister)); | 520 DCHECK(loc == regloc(kContextRegister)); |
521 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot); | 521 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot); |
522 } | 522 } |
523 } | 523 } |
524 | 524 |
525 | 525 |
526 } // namespace compiler | 526 } // namespace compiler |
527 } // namespace internal | 527 } // namespace internal |
528 } // namespace v8 | 528 } // namespace v8 |
OLD | NEW |