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/wasm/wasm-module.h" | 8 #include "src/wasm/wasm-module.h" |
9 | 9 |
10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 LinkageLocation stackloc(int i) { | 52 LinkageLocation stackloc(int i) { |
53 return LinkageLocation::ForCallerFrameSlot(i); | 53 return LinkageLocation::ForCallerFrameSlot(i); |
54 } | 54 } |
55 | 55 |
56 | 56 |
57 #if V8_TARGET_ARCH_IA32 | 57 #if V8_TARGET_ARCH_IA32 |
58 // =========================================================================== | 58 // =========================================================================== |
59 // == ia32 =================================================================== | 59 // == ia32 =================================================================== |
60 // =========================================================================== | 60 // =========================================================================== |
61 #define GP_PARAM_REGISTERS eax, edx, ecx, ebx, esi | 61 #define GP_PARAM_REGISTERS eax, edx, ecx, ebx |
62 #define GP_RETURN_REGISTERS eax, edx | 62 #define GP_RETURN_REGISTERS eax, edx |
63 #define FP_PARAM_REGISTERS xmm1, xmm2, xmm3, xmm4, xmm5, xmm6 | 63 #define FP_PARAM_REGISTERS xmm1, xmm2, xmm3, xmm4, xmm5, xmm6 |
64 #define FP_RETURN_REGISTERS xmm1, xmm2 | 64 #define FP_RETURN_REGISTERS xmm1, xmm2 |
65 | 65 |
66 #elif V8_TARGET_ARCH_X64 | 66 #elif V8_TARGET_ARCH_X64 |
67 // =========================================================================== | 67 // =========================================================================== |
68 // == x64 ==================================================================== | 68 // == x64 ==================================================================== |
69 // =========================================================================== | 69 // =========================================================================== |
70 #define GP_PARAM_REGISTERS rax, rdx, rcx, rbx, rsi, rdi | 70 #define GP_PARAM_REGISTERS rax, rdx, rcx, rbx, rsi, rdi |
71 #define GP_RETURN_REGISTERS rax, rdx | 71 #define GP_RETURN_REGISTERS rax, rdx |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 descriptor->CalleeSavedFPRegisters(), // callee-saved fp regs | 377 descriptor->CalleeSavedFPRegisters(), // callee-saved fp regs |
378 descriptor->flags(), // flags | 378 descriptor->flags(), // flags |
379 descriptor->debug_name()); | 379 descriptor->debug_name()); |
380 | 380 |
381 return descriptor; | 381 return descriptor; |
382 } | 382 } |
383 | 383 |
384 } // namespace wasm | 384 } // namespace wasm |
385 } // namespace internal | 385 } // namespace internal |
386 } // namespace v8 | 386 } // namespace v8 |
OLD | NEW |