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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 static CallDescriptor* ComputeIncoming(Zone* zone, CompilationInfo* info); | 336 static CallDescriptor* ComputeIncoming(Zone* zone, CompilationInfo* info); |
337 | 337 |
338 // The call descriptor for this compilation unit describes the locations | 338 // The call descriptor for this compilation unit describes the locations |
339 // of incoming parameters and the outgoing return value(s). | 339 // of incoming parameters and the outgoing return value(s). |
340 CallDescriptor* GetIncomingDescriptor() const { return incoming_; } | 340 CallDescriptor* GetIncomingDescriptor() const { return incoming_; } |
341 static CallDescriptor* GetJSCallDescriptor(Zone* zone, bool is_osr, | 341 static CallDescriptor* GetJSCallDescriptor(Zone* zone, bool is_osr, |
342 int parameter_count, | 342 int parameter_count, |
343 CallDescriptor::Flags flags); | 343 CallDescriptor::Flags flags); |
344 | 344 |
345 static CallDescriptor* GetRuntimeCallDescriptor( | 345 static CallDescriptor* GetRuntimeCallDescriptor( |
346 Zone* zone, Runtime::FunctionId function, int parameter_count, | 346 Zone* zone, Runtime::FunctionId function, int js_parameter_count, |
347 Operator::Properties properties, CallDescriptor::Flags flags); | 347 Operator::Properties properties, CallDescriptor::Flags flags); |
348 | 348 |
| 349 static CallDescriptor* GetCEntryStubCallDescriptor( |
| 350 Zone* zone, int return_count, int js_parameter_count, |
| 351 const char* debug_name, Operator::Properties properties, |
| 352 CallDescriptor::Flags flags); |
| 353 |
349 static CallDescriptor* GetStubCallDescriptor( | 354 static CallDescriptor* GetStubCallDescriptor( |
350 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor, | 355 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor, |
351 int stack_parameter_count, CallDescriptor::Flags flags, | 356 int stack_parameter_count, CallDescriptor::Flags flags, |
352 Operator::Properties properties = Operator::kNoProperties, | 357 Operator::Properties properties = Operator::kNoProperties, |
353 MachineType return_type = MachineType::AnyTagged(), | 358 MachineType return_type = MachineType::AnyTagged(), |
354 size_t return_count = 1); | 359 size_t return_count = 1); |
355 | 360 |
356 static CallDescriptor* GetAllocateCallDescriptor(Zone* zone); | 361 static CallDescriptor* GetAllocateCallDescriptor(Zone* zone); |
357 static CallDescriptor* GetBytecodeDispatchCallDescriptor( | 362 static CallDescriptor* GetBytecodeDispatchCallDescriptor( |
358 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor, | 363 Isolate* isolate, Zone* zone, const CallInterfaceDescriptor& descriptor, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 CallDescriptor* const incoming_; | 432 CallDescriptor* const incoming_; |
428 | 433 |
429 DISALLOW_COPY_AND_ASSIGN(Linkage); | 434 DISALLOW_COPY_AND_ASSIGN(Linkage); |
430 }; | 435 }; |
431 | 436 |
432 } // namespace compiler | 437 } // namespace compiler |
433 } // namespace internal | 438 } // namespace internal |
434 } // namespace v8 | 439 } // namespace v8 |
435 | 440 |
436 #endif // V8_COMPILER_LINKAGE_H_ | 441 #endif // V8_COMPILER_LINKAGE_H_ |
OLD | NEW |