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

Side by Side Diff: src/compiler/s390/code-generator-s390.cc

Issue 2625683004: PPC/s390: [wasm] Prerequisites for WebAssembly Table.Grow (Closed)
Patch Set: Created 3 years, 11 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 | « src/compiler/ppc/code-generator-ppc.cc ('k') | src/ppc/assembler-ppc.cc » ('j') | 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compilation-info.h" 7 #include "src/compilation-info.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 2347 matching lines...) Expand 10 before | Expand all | Expand 10 after
2358 __ StoreP(temp, g.ToMemOperand(destination)); 2358 __ StoreP(temp, g.ToMemOperand(destination));
2359 } 2359 }
2360 } else if (source->IsConstant()) { 2360 } else if (source->IsConstant()) {
2361 Constant src = g.ToConstant(source); 2361 Constant src = g.ToConstant(source);
2362 if (destination->IsRegister() || destination->IsStackSlot()) { 2362 if (destination->IsRegister() || destination->IsStackSlot()) {
2363 Register dst = 2363 Register dst =
2364 destination->IsRegister() ? g.ToRegister(destination) : kScratchReg; 2364 destination->IsRegister() ? g.ToRegister(destination) : kScratchReg;
2365 switch (src.type()) { 2365 switch (src.type()) {
2366 case Constant::kInt32: 2366 case Constant::kInt32:
2367 #if V8_TARGET_ARCH_S390X 2367 #if V8_TARGET_ARCH_S390X
2368 if (src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) { 2368 if (RelocInfo::IsWasmSizeReference(src.rmode())) {
2369 #else 2369 #else
2370 if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || 2370 if (RelocInfo::IsWasmReference(src.rmode())) {
2371 src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE ||
2372 src.rmode() == RelocInfo::WASM_MEMORY_SIZE_REFERENCE) {
2373 #endif 2371 #endif
2374 __ mov(dst, Operand(src.ToInt32(), src.rmode())); 2372 __ mov(dst, Operand(src.ToInt32(), src.rmode()));
2375 } else { 2373 } else {
2376 __ mov(dst, Operand(src.ToInt32())); 2374 __ mov(dst, Operand(src.ToInt32()));
2377 } 2375 }
2378 break; 2376 break;
2379 case Constant::kInt64: 2377 case Constant::kInt64:
2380 #if V8_TARGET_ARCH_S390X 2378 #if V8_TARGET_ARCH_S390X
2381 if (src.rmode() == RelocInfo::WASM_MEMORY_REFERENCE || 2379 if (RelocInfo::IsWasmPtrReference(src.rmode())) {
2382 src.rmode() == RelocInfo::WASM_GLOBAL_REFERENCE) {
2383 __ mov(dst, Operand(src.ToInt64(), src.rmode())); 2380 __ mov(dst, Operand(src.ToInt64(), src.rmode()));
2384 } else { 2381 } else {
2385 DCHECK(src.rmode() != RelocInfo::WASM_MEMORY_SIZE_REFERENCE); 2382 DCHECK(!RelocInfo::IsWasmSizeReference(src.rmode()));
2386 __ mov(dst, Operand(src.ToInt64())); 2383 __ mov(dst, Operand(src.ToInt64()));
2387 } 2384 }
2388 #else 2385 #else
2389 __ mov(dst, Operand(src.ToInt64())); 2386 __ mov(dst, Operand(src.ToInt64()));
2390 #endif // V8_TARGET_ARCH_S390X 2387 #endif // V8_TARGET_ARCH_S390X
2391 break; 2388 break;
2392 case Constant::kFloat32: 2389 case Constant::kFloat32:
2393 __ Move(dst, 2390 __ Move(dst,
2394 isolate()->factory()->NewNumber(src.ToFloat32(), TENURED)); 2391 isolate()->factory()->NewNumber(src.ToFloat32(), TENURED));
2395 break; 2392 break;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
2565 padding_size -= 2; 2562 padding_size -= 2;
2566 } 2563 }
2567 } 2564 }
2568 } 2565 }
2569 2566
2570 #undef __ 2567 #undef __
2571 2568
2572 } // namespace compiler 2569 } // namespace compiler
2573 } // namespace internal 2570 } // namespace internal
2574 } // namespace v8 2571 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/code-generator-ppc.cc ('k') | src/ppc/assembler-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698