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 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 namespace compiler { | 13 namespace compiler { |
14 | 14 |
15 struct PPCLinkageHelperTraits { | 15 struct PPCLinkageHelperTraits { |
16 static Register ReturnValueReg() { return r3; } | 16 static Register ReturnValueReg() { return r3; } |
17 static Register ReturnValue2Reg() { return r4; } | 17 static Register ReturnValue2Reg() { return r4; } |
18 static Register JSCallFunctionReg() { return r4; } | 18 static Register JSCallFunctionReg() { return r4; } |
19 static Register ContextReg() { return cp; } | 19 static Register ContextReg() { return cp; } |
| 20 static Register InterpreterBytecodePointerReg() { return r14; } |
| 21 static Register InterpreterDispatchTableReg() { return r15; } |
20 static Register RuntimeCallFunctionReg() { return r4; } | 22 static Register RuntimeCallFunctionReg() { return r4; } |
21 static Register RuntimeCallArgCountReg() { return r3; } | 23 static Register RuntimeCallArgCountReg() { return r3; } |
22 static RegList CCalleeSaveRegisters() { | 24 static RegList CCalleeSaveRegisters() { |
23 return r14.bit() | r15.bit() | r16.bit() | r17.bit() | r18.bit() | | 25 return r14.bit() | r15.bit() | r16.bit() | r17.bit() | r18.bit() | |
24 r19.bit() | r20.bit() | r21.bit() | r22.bit() | r23.bit() | | 26 r19.bit() | r20.bit() | r21.bit() | r22.bit() | r23.bit() | |
25 r24.bit() | r25.bit() | r26.bit() | r27.bit() | r28.bit() | | 27 r24.bit() | r25.bit() | r26.bit() | r27.bit() | r28.bit() | |
26 r29.bit() | r30.bit() | fp.bit(); | 28 r29.bit() | r30.bit() | fp.bit(); |
27 } | 29 } |
28 static RegList CCalleeSaveFPRegisters() { return 0; } | 30 static RegList CCalleeSaveFPRegisters() { return 0; } |
29 static Register CRegisterParameter(int i) { | 31 static Register CRegisterParameter(int i) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 return_type); | 63 return_type); |
62 } | 64 } |
63 | 65 |
64 | 66 |
65 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, | 67 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, |
66 const MachineSignature* sig) { | 68 const MachineSignature* sig) { |
67 return LH::GetSimplifiedCDescriptor(zone, sig); | 69 return LH::GetSimplifiedCDescriptor(zone, sig); |
68 } | 70 } |
69 | 71 |
70 | 72 |
71 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor( | 73 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(Zone* zone) { |
72 Zone* zone, const MachineSignature* sig) { | 74 return LH::GetInterpreterDispatchDescriptor(zone); |
73 return LH::GetInterpreterDispatchDescriptor(zone, sig); | |
74 } | 75 } |
75 | 76 |
76 } // namespace compiler | 77 } // namespace compiler |
77 } // namespace internal | 78 } // namespace internal |
78 } // namespace v8 | 79 } // namespace v8 |
OLD | NEW |