| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/macro-assembler.h" | 6 #include "src/macro-assembler.h" |
| 7 | 7 |
| 8 #include "src/compiler/linkage.h" | 8 #include "src/compiler/linkage.h" |
| 9 | 9 |
| 10 #include "src/zone.h" | 10 #include "src/zone.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 namespace compiler { | 14 namespace compiler { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 LinkageLocation regloc(Register reg) { | 17 LinkageLocation regloc(Register reg) { |
| 18 return LinkageLocation::ForRegister(Register::ToAllocationIndex(reg)); | 18 return LinkageLocation::ForRegister(reg.code()); |
| 19 } | 19 } |
| 20 | 20 |
| 21 | 21 |
| 22 // Platform-specific configuration for C calling convention. | 22 // Platform-specific configuration for C calling convention. |
| 23 #if V8_TARGET_ARCH_IA32 | 23 #if V8_TARGET_ARCH_IA32 |
| 24 // =========================================================================== | 24 // =========================================================================== |
| 25 // == ia32 =================================================================== | 25 // == ia32 =================================================================== |
| 26 // =========================================================================== | 26 // =========================================================================== |
| 27 #define CALLEE_SAVE_REGISTERS esi.bit() | edi.bit() | ebx.bit() | 27 #define CALLEE_SAVE_REGISTERS esi.bit() | edi.bit() | ebx.bit() |
| 28 | 28 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 Operator::kNoProperties, // properties | 220 Operator::kNoProperties, // properties |
| 221 kCalleeSaveRegisters, // callee-saved registers | 221 kCalleeSaveRegisters, // callee-saved registers |
| 222 kCalleeSaveFPRegisters, // callee-saved fp regs | 222 kCalleeSaveFPRegisters, // callee-saved fp regs |
| 223 CallDescriptor::kNoFlags, // flags | 223 CallDescriptor::kNoFlags, // flags |
| 224 "c-call"); | 224 "c-call"); |
| 225 } | 225 } |
| 226 | 226 |
| 227 } // namespace compiler | 227 } // namespace compiler |
| 228 } // namespace internal | 228 } // namespace internal |
| 229 } // namespace v8 | 229 } // namespace v8 |
| OLD | NEW |