| 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 Arm64LinkageHelperTraits { | 15 struct Arm64LinkageHelperTraits { |
| 16 static Register ReturnValueReg() { return x0; } | 16 static Register ReturnValueReg() { return x0; } |
| 17 static Register ReturnValue2Reg() { return x1; } | 17 static Register ReturnValue2Reg() { return x1; } |
| 18 static Register JSCallFunctionReg() { return x1; } | 18 static Register JSCallFunctionReg() { return x1; } |
| 19 static Register ContextReg() { return cp; } | 19 static Register ContextReg() { return cp; } |
| 20 static Register InterpreterBytecodeOffsetReg() { return x19; } | 20 static Register InterpreterBytecodeOffsetReg() { |
| 21 static Register InterpreterBytecodeArrayReg() { return x20; } | 21 return kInterpreterBytecodeOffsetRegister; |
| 22 static Register InterpreterDispatchTableReg() { return x21; } | 22 } |
| 23 static Register InterpreterBytecodeArrayReg() { |
| 24 return kInterpreterBytecodeArrayRegister; |
| 25 } |
| 26 static Register InterpreterDispatchTableReg() { |
| 27 return kInterpreterDispatchTableRegister; |
| 28 } |
| 23 static Register RuntimeCallFunctionReg() { return x1; } | 29 static Register RuntimeCallFunctionReg() { return x1; } |
| 24 static Register RuntimeCallArgCountReg() { return x0; } | 30 static Register RuntimeCallArgCountReg() { return x0; } |
| 25 static RegList CCalleeSaveRegisters() { | 31 static RegList CCalleeSaveRegisters() { |
| 26 return (1 << x19.code()) | (1 << x20.code()) | (1 << x21.code()) | | 32 return (1 << x19.code()) | (1 << x20.code()) | (1 << x21.code()) | |
| 27 (1 << x22.code()) | (1 << x23.code()) | (1 << x24.code()) | | 33 (1 << x22.code()) | (1 << x23.code()) | (1 << x24.code()) | |
| 28 (1 << x25.code()) | (1 << x26.code()) | (1 << x27.code()) | | 34 (1 << x25.code()) | (1 << x26.code()) | (1 << x27.code()) | |
| 29 (1 << x28.code()) | (1 << x29.code()) | (1 << x30.code()); | 35 (1 << x28.code()) | (1 << x29.code()) | (1 << x30.code()); |
| 30 } | 36 } |
| 31 static RegList CCalleeSaveFPRegisters() { | 37 static RegList CCalleeSaveFPRegisters() { |
| 32 return (1 << d8.code()) | (1 << d9.code()) | (1 << d10.code()) | | 38 return (1 << d8.code()) | (1 << d9.code()) | (1 << d10.code()) | |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 } | 81 } |
| 76 | 82 |
| 77 | 83 |
| 78 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(Zone* zone) { | 84 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(Zone* zone) { |
| 79 return LH::GetInterpreterDispatchDescriptor(zone); | 85 return LH::GetInterpreterDispatchDescriptor(zone); |
| 80 } | 86 } |
| 81 | 87 |
| 82 } // namespace compiler | 88 } // namespace compiler |
| 83 } // namespace internal | 89 } // namespace internal |
| 84 } // namespace v8 | 90 } // namespace v8 |
| OLD | NEW |