| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 CallDescriptor::Flags flags); | 180 CallDescriptor::Flags flags); |
| 181 CallDescriptor* GetRuntimeCallDescriptor( | 181 CallDescriptor* GetRuntimeCallDescriptor( |
| 182 Runtime::FunctionId function, int parameter_count, | 182 Runtime::FunctionId function, int parameter_count, |
| 183 Operator::Properties properties) const; | 183 Operator::Properties properties) const; |
| 184 static CallDescriptor* GetRuntimeCallDescriptor( | 184 static CallDescriptor* GetRuntimeCallDescriptor( |
| 185 Runtime::FunctionId function, int parameter_count, | 185 Runtime::FunctionId function, int parameter_count, |
| 186 Operator::Properties properties, Zone* zone); | 186 Operator::Properties properties, Zone* zone); |
| 187 | 187 |
| 188 CallDescriptor* GetStubCallDescriptor( | 188 CallDescriptor* GetStubCallDescriptor( |
| 189 const CallInterfaceDescriptor& descriptor, int stack_parameter_count = 0, | 189 const CallInterfaceDescriptor& descriptor, int stack_parameter_count = 0, |
| 190 CallDescriptor::Flags flags = CallDescriptor::kNoFlags) const; | 190 CallDescriptor::Flags flags = CallDescriptor::kNoFlags, |
| 191 Operator::Properties properties = Operator::kNoProperties) const; |
| 191 static CallDescriptor* GetStubCallDescriptor( | 192 static CallDescriptor* GetStubCallDescriptor( |
| 192 const CallInterfaceDescriptor& descriptor, int stack_parameter_count, | 193 const CallInterfaceDescriptor& descriptor, int stack_parameter_count, |
| 193 CallDescriptor::Flags flags, Zone* zone); | 194 CallDescriptor::Flags flags, Operator::Properties properties, Zone* zone); |
| 194 | 195 |
| 195 // Creates a call descriptor for simplified C calls that is appropriate | 196 // Creates a call descriptor for simplified C calls that is appropriate |
| 196 // for the host platform. This simplified calling convention only supports | 197 // for the host platform. This simplified calling convention only supports |
| 197 // integers and pointers of one word size each, i.e. no floating point, | 198 // integers and pointers of one word size each, i.e. no floating point, |
| 198 // structs, pointers to members, etc. | 199 // structs, pointers to members, etc. |
| 199 static CallDescriptor* GetSimplifiedCDescriptor(Zone* zone, | 200 static CallDescriptor* GetSimplifiedCDescriptor(Zone* zone, |
| 200 MachineSignature* sig); | 201 MachineSignature* sig); |
| 201 | 202 |
| 202 // Get the location of an (incoming) parameter to this function. | 203 // Get the location of an (incoming) parameter to this function. |
| 203 LinkageLocation GetParameterLocation(int index) const { | 204 LinkageLocation GetParameterLocation(int index) const { |
| (...skipping 27 matching lines...) Expand all Loading... |
| 231 CallDescriptor* const incoming_; | 232 CallDescriptor* const incoming_; |
| 232 | 233 |
| 233 DISALLOW_COPY_AND_ASSIGN(Linkage); | 234 DISALLOW_COPY_AND_ASSIGN(Linkage); |
| 234 }; | 235 }; |
| 235 | 236 |
| 236 } // namespace compiler | 237 } // namespace compiler |
| 237 } // namespace internal | 238 } // namespace internal |
| 238 } // namespace v8 | 239 } // namespace v8 |
| 239 | 240 |
| 240 #endif // V8_COMPILER_LINKAGE_H_ | 241 #endif // V8_COMPILER_LINKAGE_H_ |
| OLD | NEW |