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

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

Issue 1714223002: [wasm] Fix linkage for PPC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 #define GP_RETURN_REGISTERS v0, v1 115 #define GP_RETURN_REGISTERS v0, v1
116 #define FP_PARAM_REGISTERS f2, f4, f6, f8, f10, f12, f14 116 #define FP_PARAM_REGISTERS f2, f4, f6, f8, f10, f12, f14
117 #define FP_RETURN_REGISTERS f2, f4 117 #define FP_RETURN_REGISTERS f2, f4
118 118
119 #elif V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_PPC64 119 #elif V8_TARGET_ARCH_PPC || V8_TARGET_ARCH_PPC64
120 // =========================================================================== 120 // ===========================================================================
121 // == ppc & ppc64 ============================================================ 121 // == ppc & ppc64 ============================================================
122 // =========================================================================== 122 // ===========================================================================
123 #define GP_PARAM_REGISTERS r3, r4, r5, r6, r7, r8, r9, r10 123 #define GP_PARAM_REGISTERS r3, r4, r5, r6, r7, r8, r9, r10
124 #define GP_RETURN_REGISTERS r3, r4 124 #define GP_RETURN_REGISTERS r3, r4
125 #define FP_PARAM_REGISTERS d0, d1, d2, d3, d4, d5, d6, d7 125 #define FP_PARAM_REGISTERS d1, d2, d3, d4, d5, d6, d7, d8
126 #define FP_RETURN_REGISTERS d0, d1 126 #define FP_RETURN_REGISTERS d1, d2
127 127
128 #else 128 #else
129 // =========================================================================== 129 // ===========================================================================
130 // == unknown ================================================================ 130 // == unknown ================================================================
131 // =========================================================================== 131 // ===========================================================================
132 // Don't define anything. We'll just always use the stack. 132 // Don't define anything. We'll just always use the stack.
133 #endif 133 #endif
134 134
135 135
136 // Helper for allocating either an GP or FP reg, or the next stack slot. 136 // Helper for allocating either an GP or FP reg, or the next stack slot.
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 descriptor->CalleeSavedFPRegisters(), // callee-saved fp regs 359 descriptor->CalleeSavedFPRegisters(), // callee-saved fp regs
360 descriptor->flags(), // flags 360 descriptor->flags(), // flags
361 descriptor->debug_name()); 361 descriptor->debug_name());
362 362
363 return descriptor; 363 return descriptor;
364 } 364 }
365 365
366 } // namespace wasm 366 } // namespace wasm
367 } // namespace internal 367 } // namespace internal
368 } // namespace v8 368 } // 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