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 MipsLinkageHelperTraits { | 15 struct MipsLinkageHelperTraits { |
16 static Register ReturnValueReg() { return v0; } | 16 static Register ReturnValueReg() { return v0; } |
17 static Register ReturnValue2Reg() { return v1; } | 17 static Register ReturnValue2Reg() { return v1; } |
18 static Register JSCallFunctionReg() { return a1; } | 18 static Register JSCallFunctionReg() { return a1; } |
19 static Register ContextReg() { return cp; } | 19 static Register ContextReg() { return cp; } |
20 static Register InterpreterBytecodeOffsetReg() { return t4; } | 20 static Register InterpreterBytecodeOffsetReg() { |
21 static Register InterpreterBytecodeArrayReg() { return t5; } | 21 return kInterpreterBytecodeOffsetRegister; |
22 static Register InterpreterDispatchTableReg() { return t6; } | 22 } |
| 23 static Register InterpreterBytecodeArrayReg() { |
| 24 return kInterpreterBytecodeArrayRegister; |
| 25 } |
| 26 static Register InterpreterDispatchTableReg() { |
| 27 return kInterpreterDispatchTableRegister; |
| 28 } |
23 static Register RuntimeCallFunctionReg() { return a1; } | 29 static Register RuntimeCallFunctionReg() { return a1; } |
24 static Register RuntimeCallArgCountReg() { return a0; } | 30 static Register RuntimeCallArgCountReg() { return a0; } |
25 static RegList CCalleeSaveRegisters() { | 31 static RegList CCalleeSaveRegisters() { |
26 return s0.bit() | s1.bit() | s2.bit() | s3.bit() | s4.bit() | s5.bit() | | 32 return s0.bit() | s1.bit() | s2.bit() | s3.bit() | s4.bit() | s5.bit() | |
27 s6.bit() | s7.bit(); | 33 s6.bit() | s7.bit(); |
28 } | 34 } |
29 static RegList CCalleeSaveFPRegisters() { | 35 static RegList CCalleeSaveFPRegisters() { |
30 return f20.bit() | f22.bit() | f24.bit() | f26.bit() | f28.bit() | | 36 return f20.bit() | f22.bit() | f24.bit() | f26.bit() | f28.bit() | |
31 f30.bit(); | 37 f30.bit(); |
32 } | 38 } |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } | 78 } |
73 | 79 |
74 | 80 |
75 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(Zone* zone) { | 81 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(Zone* zone) { |
76 return LH::GetInterpreterDispatchDescriptor(zone); | 82 return LH::GetInterpreterDispatchDescriptor(zone); |
77 } | 83 } |
78 | 84 |
79 } // namespace compiler | 85 } // namespace compiler |
80 } // namespace internal | 86 } // namespace internal |
81 } // namespace v8 | 87 } // namespace v8 |
OLD | NEW |