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/assembler.h" | 5 #include "src/assembler.h" |
6 #include "src/code-stubs.h" | 6 #include "src/code-stubs.h" |
7 #include "src/compiler/linkage.h" | 7 #include "src/compiler/linkage.h" |
8 #include "src/compiler/linkage-impl.h" | 8 #include "src/compiler/linkage-impl.h" |
9 #include "src/zone.h" | 9 #include "src/zone.h" |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 static Register CRegisterParameter(int i) { | 36 static Register CRegisterParameter(int i) { |
37 if (kWin64) { | 37 if (kWin64) { |
38 static Register register_parameters[] = {rcx, rdx, r8, r9}; | 38 static Register register_parameters[] = {rcx, rdx, r8, r9}; |
39 return register_parameters[i]; | 39 return register_parameters[i]; |
40 } else { | 40 } else { |
41 static Register register_parameters[] = {rdi, rsi, rdx, rcx, r8, r9}; | 41 static Register register_parameters[] = {rdi, rsi, rdx, rcx, r8, r9}; |
42 return register_parameters[i]; | 42 return register_parameters[i]; |
43 } | 43 } |
44 } | 44 } |
45 static int CRegisterParametersLength() { return kWin64 ? 4 : 6; } | 45 static int CRegisterParametersLength() { return kWin64 ? 4 : 6; } |
| 46 static int CStackBackingStoreLength() { return kWin64 ? 4 : 0; } |
46 }; | 47 }; |
47 | 48 |
48 typedef LinkageHelper<X64LinkageHelperTraits> LH; | 49 typedef LinkageHelper<X64LinkageHelperTraits> LH; |
49 | 50 |
50 CallDescriptor* Linkage::GetJSCallDescriptor(Zone* zone, bool is_osr, | 51 CallDescriptor* Linkage::GetJSCallDescriptor(Zone* zone, bool is_osr, |
51 int parameter_count, | 52 int parameter_count, |
52 CallDescriptor::Flags flags) { | 53 CallDescriptor::Flags flags) { |
53 return LH::GetJSCallDescriptor(zone, is_osr, parameter_count, flags); | 54 return LH::GetJSCallDescriptor(zone, is_osr, parameter_count, flags); |
54 } | 55 } |
55 | 56 |
(...skipping 17 matching lines...) Expand all Loading... |
73 | 74 |
74 | 75 |
75 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, | 76 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, |
76 const MachineSignature* sig) { | 77 const MachineSignature* sig) { |
77 return LH::GetSimplifiedCDescriptor(zone, sig); | 78 return LH::GetSimplifiedCDescriptor(zone, sig); |
78 } | 79 } |
79 | 80 |
80 } // namespace compiler | 81 } // namespace compiler |
81 } // namespace internal | 82 } // namespace internal |
82 } // namespace v8 | 83 } // namespace v8 |
OLD | NEW |