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 #ifndef V8_COMPILER_LINKAGE_H_ | 5 #ifndef V8_COMPILER_LINKAGE_H_ |
6 #define V8_COMPILER_LINKAGE_H_ | 6 #define V8_COMPILER_LINKAGE_H_ |
7 | 7 |
8 #include "src/base/flags.h" | 8 #include "src/base/flags.h" |
9 #include "src/compiler/frame.h" | 9 #include "src/compiler/frame.h" |
10 #include "src/compiler/machine-type.h" | 10 #include "src/compiler/machine-type.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 static CallDescriptor* GetJSCallDescriptor(Zone* zone, bool is_osr, | 184 static CallDescriptor* GetJSCallDescriptor(Zone* zone, bool is_osr, |
185 int parameter_count, | 185 int parameter_count, |
186 CallDescriptor::Flags flags); | 186 CallDescriptor::Flags flags); |
187 static CallDescriptor* GetRuntimeCallDescriptor( | 187 static CallDescriptor* GetRuntimeCallDescriptor( |
188 Zone* zone, Runtime::FunctionId function, int parameter_count, | 188 Zone* zone, Runtime::FunctionId function, int parameter_count, |
189 Operator::Properties properties); | 189 Operator::Properties properties); |
190 | 190 |
191 static CallDescriptor* GetStubCallDescriptor( | 191 static CallDescriptor* GetStubCallDescriptor( |
192 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor, | 192 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor, |
193 int stack_parameter_count, CallDescriptor::Flags flags, | 193 int stack_parameter_count, CallDescriptor::Flags flags, |
194 Operator::Properties properties = Operator::kNoProperties); | 194 Operator::Properties properties = Operator::kNoProperties, |
| 195 MachineType return_type = kMachAnyTagged); |
195 | 196 |
196 // Creates a call descriptor for simplified C calls that is appropriate | 197 // Creates a call descriptor for simplified C calls that is appropriate |
197 // for the host platform. This simplified calling convention only supports | 198 // for the host platform. This simplified calling convention only supports |
198 // integers and pointers of one word size each, i.e. no floating point, | 199 // integers and pointers of one word size each, i.e. no floating point, |
199 // structs, pointers to members, etc. | 200 // structs, pointers to members, etc. |
200 static CallDescriptor* GetSimplifiedCDescriptor(Zone* zone, | 201 static CallDescriptor* GetSimplifiedCDescriptor(Zone* zone, |
201 const MachineSignature* sig); | 202 const MachineSignature* sig); |
202 | 203 |
203 // Get the location of an (incoming) parameter to this function. | 204 // Get the location of an (incoming) parameter to this function. |
204 LinkageLocation GetParameterLocation(int index) const { | 205 LinkageLocation GetParameterLocation(int index) const { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 CallDescriptor* const incoming_; | 238 CallDescriptor* const incoming_; |
238 | 239 |
239 DISALLOW_COPY_AND_ASSIGN(Linkage); | 240 DISALLOW_COPY_AND_ASSIGN(Linkage); |
240 }; | 241 }; |
241 | 242 |
242 } // namespace compiler | 243 } // namespace compiler |
243 } // namespace internal | 244 } // namespace internal |
244 } // namespace v8 | 245 } // namespace v8 |
245 | 246 |
246 #endif // V8_COMPILER_LINKAGE_H_ | 247 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |