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 17 matching lines...) Expand all Loading... |
28 static Register CRegisterParameter(int i) { | 28 static Register CRegisterParameter(int i) { |
29 static Register register_parameters[] = {x0, x1, x2, x3, x4, x5, x6, x7}; | 29 static Register register_parameters[] = {x0, x1, x2, x3, x4, x5, x6, x7}; |
30 return register_parameters[i]; | 30 return register_parameters[i]; |
31 } | 31 } |
32 static int CRegisterParametersLength() { return 8; } | 32 static int CRegisterParametersLength() { return 8; } |
33 }; | 33 }; |
34 | 34 |
35 | 35 |
36 typedef LinkageHelper<Arm64LinkageHelperTraits> LH; | 36 typedef LinkageHelper<Arm64LinkageHelperTraits> LH; |
37 | 37 |
38 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone) { | 38 CallDescriptor* Linkage::GetJSCallDescriptor(int parameter_count, Zone* zone, |
39 return LH::GetJSCallDescriptor(zone, parameter_count); | 39 CallDescriptor::Flags flags) { |
| 40 return LH::GetJSCallDescriptor(zone, parameter_count, flags); |
40 } | 41 } |
41 | 42 |
42 | 43 |
43 CallDescriptor* Linkage::GetRuntimeCallDescriptor( | 44 CallDescriptor* Linkage::GetRuntimeCallDescriptor( |
44 Runtime::FunctionId function, int parameter_count, | 45 Runtime::FunctionId function, int parameter_count, |
45 Operator::Properties properties, Zone* zone) { | 46 Operator::Properties properties, Zone* zone) { |
46 return LH::GetRuntimeCallDescriptor(zone, function, parameter_count, | 47 return LH::GetRuntimeCallDescriptor(zone, function, parameter_count, |
47 properties); | 48 properties); |
48 } | 49 } |
49 | 50 |
50 | 51 |
51 CallDescriptor* Linkage::GetStubCallDescriptor( | 52 CallDescriptor* Linkage::GetStubCallDescriptor( |
52 const CallInterfaceDescriptor& descriptor, int stack_parameter_count, | 53 const CallInterfaceDescriptor& descriptor, int stack_parameter_count, |
53 CallDescriptor::Flags flags, Zone* zone) { | 54 CallDescriptor::Flags flags, Zone* zone) { |
54 return LH::GetStubCallDescriptor(zone, descriptor, stack_parameter_count, | 55 return LH::GetStubCallDescriptor(zone, descriptor, stack_parameter_count, |
55 flags); | 56 flags); |
56 } | 57 } |
57 | 58 |
58 | 59 |
59 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, | 60 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, |
60 MachineSignature* sig) { | 61 MachineSignature* sig) { |
61 return LH::GetSimplifiedCDescriptor(zone, sig); | 62 return LH::GetSimplifiedCDescriptor(zone, sig); |
62 } | 63 } |
63 | 64 |
64 } // namespace compiler | 65 } // namespace compiler |
65 } // namespace internal | 66 } // namespace internal |
66 } // namespace v8 | 67 } // namespace v8 |
OLD | NEW |