Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(168)

Side by Side Diff: src/compiler/wasm-linkage.cc

Issue 1545203002: [wasm] Define the FP return register for X87. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698