| 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 IA32LinkageHelperTraits { | 15 struct IA32LinkageHelperTraits { |
| 16 static Register ReturnValueReg() { return eax; } | 16 static Register ReturnValueReg() { return eax; } |
| 17 static Register ReturnValue2Reg() { return edx; } | 17 static Register ReturnValue2Reg() { return edx; } |
| 18 static Register JSCallFunctionReg() { return edi; } | 18 static Register JSCallFunctionReg() { return edi; } |
| 19 static Register ContextReg() { return esi; } | 19 static Register ContextReg() { return esi; } |
| 20 static Register InterpreterBytecodePointerReg() { return edi; } | 20 static Register InterpreterBytecodeOffsetReg() { return ecx; } |
| 21 static Register InterpreterBytecodeArrayReg() { return edi; } |
| 21 static Register InterpreterDispatchTableReg() { return ebx; } | 22 static Register InterpreterDispatchTableReg() { return ebx; } |
| 22 static Register RuntimeCallFunctionReg() { return ebx; } | 23 static Register RuntimeCallFunctionReg() { return ebx; } |
| 23 static Register RuntimeCallArgCountReg() { return eax; } | 24 static Register RuntimeCallArgCountReg() { return eax; } |
| 24 static RegList CCalleeSaveRegisters() { | 25 static RegList CCalleeSaveRegisters() { |
| 25 return esi.bit() | edi.bit() | ebx.bit(); | 26 return esi.bit() | edi.bit() | ebx.bit(); |
| 26 } | 27 } |
| 27 static RegList CCalleeSaveFPRegisters() { return 0; } | 28 static RegList CCalleeSaveFPRegisters() { return 0; } |
| 28 static Register CRegisterParameter(int i) { return no_reg; } | 29 static Register CRegisterParameter(int i) { return no_reg; } |
| 29 static int CRegisterParametersLength() { return 0; } | 30 static int CRegisterParametersLength() { return 0; } |
| 30 static int CStackBackingStoreLength() { return 0; } | 31 static int CStackBackingStoreLength() { return 0; } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 } | 64 } |
| 64 | 65 |
| 65 | 66 |
| 66 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(Zone* zone) { | 67 CallDescriptor* Linkage::GetInterpreterDispatchDescriptor(Zone* zone) { |
| 67 return LH::GetInterpreterDispatchDescriptor(zone); | 68 return LH::GetInterpreterDispatchDescriptor(zone); |
| 68 } | 69 } |
| 69 | 70 |
| 70 } // namespace compiler | 71 } // namespace compiler |
| 71 } // namespace internal | 72 } // namespace internal |
| 72 } // namespace v8 | 73 } // namespace v8 |
| OLD | NEW |