| 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 InterpreterBytecodePointerReg() { return s0; } |
| 21 static Register InterpreterDispatchTableReg() { return s1; } |
| 20 static Register RuntimeCallFunctionReg() { return a1; } | 22 static Register RuntimeCallFunctionReg() { return a1; } |
| 21 static Register RuntimeCallArgCountReg() { return a0; } | 23 static Register RuntimeCallArgCountReg() { return a0; } |
| 22 static RegList CCalleeSaveRegisters() { | 24 static RegList CCalleeSaveRegisters() { |
| 23 return s0.bit() | s1.bit() | s2.bit() | s3.bit() | s4.bit() | s5.bit() | | 25 return s0.bit() | s1.bit() | s2.bit() | s3.bit() | s4.bit() | s5.bit() | |
| 24 s6.bit() | s7.bit(); | 26 s6.bit() | s7.bit(); |
| 25 } | 27 } |
| 26 static RegList CCalleeSaveFPRegisters() { | 28 static RegList CCalleeSaveFPRegisters() { |
| 27 return f20.bit() | f22.bit() | f24.bit() | f26.bit() | f28.bit() | | 29 return f20.bit() | f22.bit() | f24.bit() | f26.bit() | f28.bit() | |
| 28 f30.bit(); | 30 f30.bit(); |
| 29 } | 31 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 return_type); | 64 return_type); |
| 63 } | 65 } |
| 64 | 66 |
| 65 | 67 |
| 66 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, | 68 CallDescriptor* Linkage::GetSimplifiedCDescriptor(Zone* zone, |
| 67 const MachineSignature* sig) { | 69 const MachineSignature* sig) { |
| 68 return LH::GetSimplifiedCDescriptor(zone, sig); | 70 return LH::GetSimplifiedCDescriptor(zone, sig); |
| 69 } | 71 } |
| 70 | 72 |
| 71 | 73 |
| 72 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor( | 74 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(Zone* zone) { |
| 73 Zone* zone, const MachineSignature* sig) { | 75 return LH::GetInterpreterDispatchDescriptor(zone); |
| 74 return LH::GetInterpreterDispatchDescriptor(zone, sig); | |
| 75 } | 76 } |
| 76 | 77 |
| 77 } // namespace compiler | 78 } // namespace compiler |
| 78 } // namespace internal | 79 } // namespace internal |
| 79 } // namespace v8 | 80 } // namespace v8 |
| OLD | NEW |