| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 #define GP_RETURN_REGISTERS rax, rdx | 71 #define GP_RETURN_REGISTERS rax, rdx |
| 72 #define FP_PARAM_REGISTERS xmm1, xmm2, xmm3, xmm4, xmm5, xmm6 | 72 #define FP_PARAM_REGISTERS xmm1, xmm2, xmm3, xmm4, xmm5, xmm6 |
| 73 #define FP_RETURN_REGISTERS xmm1, xmm2 | 73 #define FP_RETURN_REGISTERS xmm1, xmm2 |
| 74 | 74 |
| 75 #elif V8_TARGET_ARCH_X87 | 75 #elif V8_TARGET_ARCH_X87 |
| 76 // =========================================================================== | 76 // =========================================================================== |
| 77 // == x87 ==================================================================== | 77 // == x87 ==================================================================== |
| 78 // =========================================================================== | 78 // =========================================================================== |
| 79 #define GP_PARAM_REGISTERS eax, edx, ecx, ebx, esi, edi | 79 #define GP_PARAM_REGISTERS eax, edx, ecx, ebx, esi, edi |
| 80 #define GP_RETURN_REGISTERS eax, edx | 80 #define GP_RETURN_REGISTERS eax, edx |
| 81 #define FP_RETURN_REGISTERS stX_0 |
| 81 | 82 |
| 82 #elif V8_TARGET_ARCH_ARM | 83 #elif V8_TARGET_ARCH_ARM |
| 83 // =========================================================================== | 84 // =========================================================================== |
| 84 // == arm ==================================================================== | 85 // == arm ==================================================================== |
| 85 // =========================================================================== | 86 // =========================================================================== |
| 86 #define GP_PARAM_REGISTERS r0, r1, r2, r3 | 87 #define GP_PARAM_REGISTERS r0, r1, r2, r3 |
| 87 #define GP_RETURN_REGISTERS r0, r1 | 88 #define GP_RETURN_REGISTERS r0, r1 |
| 88 #define FP_PARAM_REGISTERS d0, d1, d2, d3, d4, d5, d6, d7 | 89 #define FP_PARAM_REGISTERS d0, d1, d2, d3, d4, d5, d6, d7 |
| 89 #define FP_RETURN_REGISTERS d0, d1 | 90 #define FP_RETURN_REGISTERS d0, d1 |
| 90 | 91 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 params.stack_offset, // stack_parameter_count | 273 params.stack_offset, // stack_parameter_count |
| 273 compiler::Operator::kNoProperties, // properties | 274 compiler::Operator::kNoProperties, // properties |
| 274 kCalleeSaveRegisters, // callee-saved registers | 275 kCalleeSaveRegisters, // callee-saved registers |
| 275 kCalleeSaveFPRegisters, // callee-saved fp regs | 276 kCalleeSaveFPRegisters, // callee-saved fp regs |
| 276 CallDescriptor::kUseNativeStack, // flags | 277 CallDescriptor::kUseNativeStack, // flags |
| 277 "c-call"); | 278 "c-call"); |
| 278 } | 279 } |
| 279 } // namespace wasm | 280 } // namespace wasm |
| 280 } // namespace internal | 281 } // namespace internal |
| 281 } // namespace v8 | 282 } // namespace v8 |
| OLD | NEW |