| 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 case Runtime::kInlineCall: | 181 case Runtime::kInlineCall: |
| 182 case Runtime::kInlineDeoptimizeNow: | 182 case Runtime::kInlineDeoptimizeNow: |
| 183 case Runtime::kInlineGetPrototype: | 183 case Runtime::kInlineGetPrototype: |
| 184 case Runtime::kInlineNewObject: | 184 case Runtime::kInlineNewObject: |
| 185 case Runtime::kInlineRegExpConstructResult: | 185 case Runtime::kInlineRegExpConstructResult: |
| 186 case Runtime::kInlineRegExpExec: | 186 case Runtime::kInlineRegExpExec: |
| 187 case Runtime::kInlineSubString: | 187 case Runtime::kInlineSubString: |
| 188 case Runtime::kInlineThrowNotDateError: | 188 case Runtime::kInlineThrowNotDateError: |
| 189 case Runtime::kInlineToInteger: | 189 case Runtime::kInlineToInteger: |
| 190 case Runtime::kInlineToLength: | 190 case Runtime::kInlineToLength: |
| 191 case Runtime::kInlineToName: | |
| 192 case Runtime::kInlineToNumber: | 191 case Runtime::kInlineToNumber: |
| 193 case Runtime::kInlineToObject: | 192 case Runtime::kInlineToObject: |
| 194 case Runtime::kInlineToPrimitive: | |
| 195 case Runtime::kInlineToPrimitive_Number: | |
| 196 case Runtime::kInlineToPrimitive_String: | |
| 197 case Runtime::kInlineToString: | 193 case Runtime::kInlineToString: |
| 198 return true; | 194 return true; |
| 199 default: | 195 default: |
| 200 break; | 196 break; |
| 201 } | 197 } |
| 202 | 198 |
| 203 // Most inlined runtime functions (except the ones listed above) can be called | 199 // Most inlined runtime functions (except the ones listed above) can be called |
| 204 // without a FrameState or will be lowered by JSIntrinsicLowering internally. | 200 // without a FrameState or will be lowered by JSIntrinsicLowering internally. |
| 205 const Runtime::Function* const f = Runtime::FunctionForId(function); | 201 const Runtime::Function* const f = Runtime::FunctionForId(function); |
| 206 if (f->intrinsic_type == Runtime::IntrinsicType::INLINE) return false; | 202 if (f->intrinsic_type == Runtime::IntrinsicType::INLINE) return false; |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 DCHECK(loc == regloc(kContextRegister, MachineType::AnyTagged())); | 509 DCHECK(loc == regloc(kContextRegister, MachineType::AnyTagged())); |
| 514 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot, | 510 return LinkageLocation::ForCalleeFrameSlot(Frame::kContextSlot, |
| 515 MachineType::AnyTagged()); | 511 MachineType::AnyTagged()); |
| 516 } | 512 } |
| 517 } | 513 } |
| 518 | 514 |
| 519 | 515 |
| 520 } // namespace compiler | 516 } // namespace compiler |
| 521 } // namespace internal | 517 } // namespace internal |
| 522 } // namespace v8 | 518 } // namespace v8 |
| OLD | NEW |