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" |
11 #include "src/zone.h" | 11 #include "src/zone.h" |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 namespace compiler { | 15 namespace compiler { |
16 | 16 |
17 #if V8_TURBOFAN_TARGET | |
18 | |
19 struct LinkageHelperTraits { | 17 struct LinkageHelperTraits { |
20 static Register ReturnValueReg() { return x0; } | 18 static Register ReturnValueReg() { return x0; } |
21 static Register ReturnValue2Reg() { return x1; } | 19 static Register ReturnValue2Reg() { return x1; } |
22 static Register JSCallFunctionReg() { return x1; } | 20 static Register JSCallFunctionReg() { return x1; } |
23 static Register ContextReg() { return cp; } | 21 static Register ContextReg() { return cp; } |
24 static Register RuntimeCallFunctionReg() { return x1; } | 22 static Register RuntimeCallFunctionReg() { return x1; } |
25 static Register RuntimeCallArgCountReg() { return x0; } | 23 static Register RuntimeCallArgCountReg() { return x0; } |
26 static RegList CCalleeSaveRegisters() { | 24 static RegList CCalleeSaveRegisters() { |
27 // TODO(dcarney): correct callee saved registers. | 25 // TODO(dcarney): correct callee saved registers. |
28 return 0; | 26 return 0; |
(...skipping 28 matching lines...) Expand all Loading... |
57 } | 55 } |
58 | 56 |
59 | 57 |
60 CallDescriptor* Linkage::GetSimplifiedCDescriptor( | 58 CallDescriptor* Linkage::GetSimplifiedCDescriptor( |
61 Zone* zone, int num_params, MachineRepresentation return_type, | 59 Zone* zone, int num_params, MachineRepresentation return_type, |
62 const MachineRepresentation* param_types) { | 60 const MachineRepresentation* param_types) { |
63 return LinkageHelper::GetSimplifiedCDescriptor<LinkageHelperTraits>( | 61 return LinkageHelper::GetSimplifiedCDescriptor<LinkageHelperTraits>( |
64 zone, num_params, return_type, param_types); | 62 zone, num_params, return_type, param_types); |
65 } | 63 } |
66 | 64 |
67 #endif // V8_TURBOFAN_TARGET | |
68 } | 65 } |
69 } | 66 } |
70 } // namespace v8::internal::compiler | 67 } // namespace v8::internal::compiler |
OLD | NEW |