| 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/operator.h" | 10 #include "src/compiler/operator.h" |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 Zone* zone, Runtime::FunctionId function, int parameter_count, | 326 Zone* zone, Runtime::FunctionId function, int parameter_count, |
| 327 Operator::Properties properties, CallDescriptor::Flags flags); | 327 Operator::Properties properties, CallDescriptor::Flags flags); |
| 328 | 328 |
| 329 static CallDescriptor* GetStubCallDescriptor( | 329 static CallDescriptor* GetStubCallDescriptor( |
| 330 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor, | 330 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor, |
| 331 int stack_parameter_count, CallDescriptor::Flags flags, | 331 int stack_parameter_count, CallDescriptor::Flags flags, |
| 332 Operator::Properties properties = Operator::kNoProperties, | 332 Operator::Properties properties = Operator::kNoProperties, |
| 333 MachineType return_type = MachineType::AnyTagged(), | 333 MachineType return_type = MachineType::AnyTagged(), |
| 334 size_t return_count = 1); | 334 size_t return_count = 1); |
| 335 | 335 |
| 336 static CallDescriptor* GetAllocateCallDescriptor(Zone* zone); |
| 336 static CallDescriptor* GetBytecodeDispatchCallDescriptor( | 337 static CallDescriptor* GetBytecodeDispatchCallDescriptor( |
| 337 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor, | 338 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor, |
| 338 int stack_parameter_count); | 339 int stack_parameter_count); |
| 339 | 340 |
| 340 // Creates a call descriptor for simplified C calls that is appropriate | 341 // Creates a call descriptor for simplified C calls that is appropriate |
| 341 // for the host platform. This simplified calling convention only supports | 342 // for the host platform. This simplified calling convention only supports |
| 342 // integers and pointers of one word size each, i.e. no floating point, | 343 // integers and pointers of one word size each, i.e. no floating point, |
| 343 // structs, pointers to members, etc. | 344 // structs, pointers to members, etc. |
| 344 static CallDescriptor* GetSimplifiedCDescriptor( | 345 static CallDescriptor* GetSimplifiedCDescriptor( |
| 345 Zone* zone, const MachineSignature* sig, | 346 Zone* zone, const MachineSignature* sig, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 CallDescriptor* const incoming_; | 404 CallDescriptor* const incoming_; |
| 404 | 405 |
| 405 DISALLOW_COPY_AND_ASSIGN(Linkage); | 406 DISALLOW_COPY_AND_ASSIGN(Linkage); |
| 406 }; | 407 }; |
| 407 | 408 |
| 408 } // namespace compiler | 409 } // namespace compiler |
| 409 } // namespace internal | 410 } // namespace internal |
| 410 } // namespace v8 | 411 } // namespace v8 |
| 411 | 412 |
| 412 #endif // V8_COMPILER_LINKAGE_H_ | 413 #endif // V8_COMPILER_LINKAGE_H_ |
| OLD | NEW |