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/linkage.h" | 7 #include "src/compiler/linkage.h" |
8 #include "src/compiler/node.h" | 8 #include "src/compiler/node.h" |
9 #include "src/compiler/pipeline.h" | 9 #include "src/compiler/pipeline.h" |
10 #include "src/scopes.h" | 10 #include "src/scopes.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // plus the receiver. | 44 // plus the receiver. |
45 return GetJSCallDescriptor(zone, info->is_osr(), | 45 return GetJSCallDescriptor(zone, info->is_osr(), |
46 1 + info->function()->parameter_count(), | 46 1 + info->function()->parameter_count(), |
47 CallDescriptor::kNoFlags); | 47 CallDescriptor::kNoFlags); |
48 } | 48 } |
49 if (!info->closure().is_null()) { | 49 if (!info->closure().is_null()) { |
50 // If we are compiling a JS function, use a JS call descriptor, | 50 // If we are compiling a JS function, use a JS call descriptor, |
51 // plus the receiver. | 51 // plus the receiver. |
52 SharedFunctionInfo* shared = info->closure()->shared(); | 52 SharedFunctionInfo* shared = info->closure()->shared(); |
53 return GetJSCallDescriptor(zone, info->is_osr(), | 53 return GetJSCallDescriptor(zone, info->is_osr(), |
54 1 + shared->formal_parameter_count(), | 54 1 + shared->internal_formal_parameter_count(), |
55 CallDescriptor::kNoFlags); | 55 CallDescriptor::kNoFlags); |
56 } | 56 } |
57 if (info->code_stub() != NULL) { | 57 if (info->code_stub() != NULL) { |
58 // Use the code stub interface descriptor. | 58 // Use the code stub interface descriptor. |
59 CallInterfaceDescriptor descriptor = | 59 CallInterfaceDescriptor descriptor = |
60 info->code_stub()->GetCallInterfaceDescriptor(); | 60 info->code_stub()->GetCallInterfaceDescriptor(); |
61 return GetStubCallDescriptor(info->isolate(), zone, descriptor, 0, | 61 return GetStubCallDescriptor(info->isolate(), zone, descriptor, 0, |
62 CallDescriptor::kNoFlags, | 62 CallDescriptor::kNoFlags, |
63 Operator::kNoProperties); | 63 Operator::kNoProperties); |
64 } | 64 } |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 203 |
204 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, | 204 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, |
205 const MachineSignature* sig) { | 205 const MachineSignature* sig) { |
206 UNIMPLEMENTED(); | 206 UNIMPLEMENTED(); |
207 return NULL; | 207 return NULL; |
208 } | 208 } |
209 #endif // !V8_TURBOFAN_BACKEND | 209 #endif // !V8_TURBOFAN_BACKEND |
210 } | 210 } |
211 } | 211 } |
212 } // namespace v8::internal::compiler | 212 } // namespace v8::internal::compiler |
OLD | NEW |