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

Side by Side Diff: src/machine-type.cc

Issue 1693963004: Add a kSimd128 machine type for Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. 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 | « src/machine-type.h ('k') | src/mips/assembler-mips.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/machine-type.h" 5 #include "src/machine-type.h"
6 #include "src/ostreams.h" 6 #include "src/ostreams.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
11 std::ostream& operator<<(std::ostream& os, MachineRepresentation rep) { 11 std::ostream& operator<<(std::ostream& os, MachineRepresentation rep) {
12 switch (rep) { 12 switch (rep) {
13 case MachineRepresentation::kNone: 13 case MachineRepresentation::kNone:
14 return os << "kMachNone"; 14 return os << "kMachNone";
15 case MachineRepresentation::kBit: 15 case MachineRepresentation::kBit:
16 return os << "kRepBit"; 16 return os << "kRepBit";
17 case MachineRepresentation::kWord8: 17 case MachineRepresentation::kWord8:
18 return os << "kRepWord8"; 18 return os << "kRepWord8";
19 case MachineRepresentation::kWord16: 19 case MachineRepresentation::kWord16:
20 return os << "kRepWord16"; 20 return os << "kRepWord16";
21 case MachineRepresentation::kWord32: 21 case MachineRepresentation::kWord32:
22 return os << "kRepWord32"; 22 return os << "kRepWord32";
23 case MachineRepresentation::kWord64: 23 case MachineRepresentation::kWord64:
24 return os << "kRepWord64"; 24 return os << "kRepWord64";
25 case MachineRepresentation::kFloat32: 25 case MachineRepresentation::kFloat32:
26 return os << "kRepFloat32"; 26 return os << "kRepFloat32";
27 case MachineRepresentation::kFloat64: 27 case MachineRepresentation::kFloat64:
28 return os << "kRepFloat64"; 28 return os << "kRepFloat64";
29 case MachineRepresentation::kSimd128:
30 return os << "kRepSimd128";
29 case MachineRepresentation::kTagged: 31 case MachineRepresentation::kTagged:
30 return os << "kRepTagged"; 32 return os << "kRepTagged";
31 } 33 }
32 UNREACHABLE(); 34 UNREACHABLE();
33 return os; 35 return os;
34 } 36 }
35 37
36 38
37 std::ostream& operator<<(std::ostream& os, MachineSemantic type) { 39 std::ostream& operator<<(std::ostream& os, MachineSemantic type) {
38 switch (type) { 40 switch (type) {
(...skipping 27 matching lines...) Expand all
66 } else if (type.semantic() == MachineSemantic::kNone) { 68 } else if (type.semantic() == MachineSemantic::kNone) {
67 return os << type.representation(); 69 return os << type.representation();
68 } else { 70 } else {
69 return os << type.representation() << "|" << type.semantic(); 71 return os << type.representation() << "|" << type.semantic();
70 } 72 }
71 return os; 73 return os;
72 } 74 }
73 75
74 } // namespace internal 76 } // namespace internal
75 } // namespace v8 77 } // namespace v8
OLDNEW
« no previous file with comments | « src/machine-type.h ('k') | src/mips/assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698