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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } else { | 42 } else { |
43 static Register register_parameters[] = {rdi, rsi, rdx, rcx, r8, r9}; | 43 static Register register_parameters[] = {rdi, rsi, rdx, rcx, r8, r9}; |
44 return register_parameters[i]; | 44 return register_parameters[i]; |
45 } | 45 } |
46 } | 46 } |
47 static int CRegisterParametersLength() { return kWin64 ? 4 : 6; } | 47 static int CRegisterParametersLength() { return kWin64 ? 4 : 6; } |
48 }; | 48 }; |
49 | 49 |
50 typedef LinkageHelper<X64LinkageHelperTraits> LH; | 50 typedef LinkageHelper<X64LinkageHelperTraits> LH; |
51 | 51 |
52 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone, | 52 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone) { |
53 CallDescriptor::Flags flags) { | 53 return LH::GetJSCallDescriptor(zone, parameter_count); |
54 return LH::GetJSCallDescriptor(zone, parameter_count, flags); | |
55 } | 54 } |
56 | 55 |
57 | 56 |
58 CallDescriptor* Linkage::GetRuntimeCallDescriptor( | 57 CallDescriptor* Linkage::GetRuntimeCallDescriptor( |
59 Runtime::FunctionId function, int parameter_count, | 58 Runtime::FunctionId function, int parameter_count, |
60 Operator::Properties properties, Zone* zone) { | 59 Operator::Properties properties, Zone* zone) { |
61 return LH::GetRuntimeCallDescriptor(zone, function, parameter_count, | 60 return LH::GetRuntimeCallDescriptor(zone, function, parameter_count, |
62 properties); | 61 properties); |
63 } | 62 } |
64 | 63 |
65 | 64 |
66 CallDescriptor* Linkage::GetStubCallDescriptor( | 65 CallDescriptor* Linkage::GetStubCallDescriptor( |
67 const CallInterfaceDescriptor& descriptor, int stack_parameter_count, | 66 const CallInterfaceDescriptor& descriptor, int stack_parameter_count, |
68 CallDescriptor::Flags flags, Zone* zone) { | 67 CallDescriptor::Flags flags, Zone* zone) { |
69 return LH::GetStubCallDescriptor(zone, descriptor, stack_parameter_count, | 68 return LH::GetStubCallDescriptor(zone, descriptor, stack_parameter_count, |
70 flags); | 69 flags); |
71 } | 70 } |
72 | 71 |
73 | 72 |
74 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, | 73 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, |
75 MachineSignature* sig) { | 74 MachineSignature* sig) { |
76 return LH::GetSimplifiedCDescriptor(zone, sig); | 75 return LH::GetSimplifiedCDescriptor(zone, sig); |
77 } | 76 } |
78 | 77 |
79 } // namespace compiler | 78 } // namespace compiler |
80 } // namespace internal | 79 } // namespace internal |
81 } // namespace v8 | 80 } // namespace v8 |
OLD | NEW |