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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
10 #include "src/compiler/linkage-impl.h" | 10 #include "src/compiler/linkage-impl.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 static int CRegisterParametersLength() { return kWin64 ? 4 : 6; } | 47 static int CRegisterParametersLength() { return kWin64 ? 4 : 6; } |
48 }; | 48 }; |
49 | 49 |
50 | 50 |
51 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone) { | 51 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone) { |
52 return LinkageHelper::GetJSCallDescriptor<LinkageHelperTraits>( | 52 return LinkageHelper::GetJSCallDescriptor<LinkageHelperTraits>( |
53 zone, parameter_count); | 53 zone, parameter_count); |
54 } | 54 } |
55 | 55 |
56 | 56 |
57 CallDescriptor* Linkage::GetRuntimeCallDescriptor(Runtime::FunctionId function, | 57 CallDescriptor* Linkage::GetRuntimeCallDescriptor( |
58 int parameter_count, | 58 Runtime::FunctionId function, int parameter_count, |
59 Operator::Property properties, | 59 Operator::Properties properties, Zone* zone) { |
60 Zone* zone) { | |
61 return LinkageHelper::GetRuntimeCallDescriptor<LinkageHelperTraits>( | 60 return LinkageHelper::GetRuntimeCallDescriptor<LinkageHelperTraits>( |
62 zone, function, parameter_count, properties); | 61 zone, function, parameter_count, properties); |
63 } | 62 } |
64 | 63 |
65 | 64 |
66 CallDescriptor* Linkage::GetStubCallDescriptor( | 65 CallDescriptor* Linkage::GetStubCallDescriptor( |
67 CodeStubInterfaceDescriptor* descriptor, int stack_parameter_count, | 66 CodeStubInterfaceDescriptor* descriptor, int stack_parameter_count, |
68 CallDescriptor::Flags flags, Zone* zone) { | 67 CallDescriptor::Flags flags, Zone* zone) { |
69 return LinkageHelper::GetStubCallDescriptor<LinkageHelperTraits>( | 68 return LinkageHelper::GetStubCallDescriptor<LinkageHelperTraits>( |
70 zone, descriptor, stack_parameter_count, flags); | 69 zone, descriptor, stack_parameter_count, flags); |
71 } | 70 } |
72 | 71 |
73 | 72 |
74 CallDescriptor* Linkage::GetSimplifiedCDescriptor( | 73 CallDescriptor* Linkage::GetSimplifiedCDescriptor( |
75 Zone* zone, int num_params, MachineType return_type, | 74 Zone* zone, int num_params, MachineType return_type, |
76 const MachineType* param_types) { | 75 const MachineType* param_types) { |
77 return LinkageHelper::GetSimplifiedCDescriptor<LinkageHelperTraits>( | 76 return LinkageHelper::GetSimplifiedCDescriptor<LinkageHelperTraits>( |
78 zone, num_params, return_type, param_types); | 77 zone, num_params, return_type, param_types); |
79 } | 78 } |
80 | 79 |
81 } | 80 } // namespace compiler |
82 } | 81 } // namespace internal |
83 } // namespace v8::internal::compiler | 82 } // namespace v8 |
OLD | NEW |