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

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

Issue 2009553002: Add Wasm SIMD opcodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix shuffle/swizzle signatures Created 4 years, 7 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
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 13 matching lines...) Expand all
24 MachineType MachineTypeFor(LocalType type) { 24 MachineType MachineTypeFor(LocalType type) {
25 switch (type) { 25 switch (type) {
26 case kAstI32: 26 case kAstI32:
27 return MachineType::Int32(); 27 return MachineType::Int32();
28 case kAstI64: 28 case kAstI64:
29 return MachineType::Int64(); 29 return MachineType::Int64();
30 case kAstF64: 30 case kAstF64:
31 return MachineType::Float64(); 31 return MachineType::Float64();
32 case kAstF32: 32 case kAstF32:
33 return MachineType::Float32(); 33 return MachineType::Float32();
34 case kAstS128:
35 return MachineType::Simd128();
34 default: 36 default:
35 UNREACHABLE(); 37 UNREACHABLE();
36 return MachineType::AnyTagged(); 38 return MachineType::AnyTagged();
37 } 39 }
38 } 40 }
39 41
40 42
41 // Platform-specific configuration for C calling convention. 43 // Platform-specific configuration for C calling convention.
42 LinkageLocation regloc(Register reg) { 44 LinkageLocation regloc(Register reg) {
43 return LinkageLocation::ForRegister(reg.code()); 45 return LinkageLocation::ForRegister(reg.code());
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 descriptor->CalleeSavedFPRegisters(), // callee-saved fp regs 379 descriptor->CalleeSavedFPRegisters(), // callee-saved fp regs
378 descriptor->flags(), // flags 380 descriptor->flags(), // flags
379 descriptor->debug_name()); 381 descriptor->debug_name());
380 382
381 return descriptor; 383 return descriptor;
382 } 384 }
383 385
384 } // namespace wasm 386 } // namespace wasm
385 } // namespace internal 387 } // namespace internal
386 } // namespace v8 388 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/typer.cc ('k') | src/wasm/ast-decoder.cc » ('j') | src/wasm/wasm-opcodes.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698