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

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

Issue 2216383002: TurboFan: Introduce TaggedSigned and TaggedPointer representations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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
« src/compiler/load-elimination.cc ('K') | « src/machine-type.h ('k') | 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 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
(...skipping 14 matching lines...) Expand all
25 case MachineRepresentation::kWord32: 25 case MachineRepresentation::kWord32:
26 return "kRepWord32"; 26 return "kRepWord32";
27 case MachineRepresentation::kWord64: 27 case MachineRepresentation::kWord64:
28 return "kRepWord64"; 28 return "kRepWord64";
29 case MachineRepresentation::kFloat32: 29 case MachineRepresentation::kFloat32:
30 return "kRepFloat32"; 30 return "kRepFloat32";
31 case MachineRepresentation::kFloat64: 31 case MachineRepresentation::kFloat64:
32 return "kRepFloat64"; 32 return "kRepFloat64";
33 case MachineRepresentation::kSimd128: 33 case MachineRepresentation::kSimd128:
34 return "kRepSimd128"; 34 return "kRepSimd128";
35 case MachineRepresentation::kTaggedSigned:
36 return "kRepTaggedSigned";
37 case MachineRepresentation::kTaggedPointer:
38 return "kRepTaggedPointer";
35 case MachineRepresentation::kTagged: 39 case MachineRepresentation::kTagged:
36 return "kRepTagged"; 40 return "kRepTagged";
37 } 41 }
38 UNREACHABLE(); 42 UNREACHABLE();
39 return nullptr; 43 return nullptr;
40 } 44 }
41 45
42 std::ostream& operator<<(std::ostream& os, MachineSemantic type) { 46 std::ostream& operator<<(std::ostream& os, MachineSemantic type) {
43 switch (type) { 47 switch (type) {
44 case MachineSemantic::kNone: 48 case MachineSemantic::kNone:
(...skipping 26 matching lines...) Expand all
71 } else if (type.semantic() == MachineSemantic::kNone) { 75 } else if (type.semantic() == MachineSemantic::kNone) {
72 return os << type.representation(); 76 return os << type.representation();
73 } else { 77 } else {
74 return os << type.representation() << "|" << type.semantic(); 78 return os << type.representation() << "|" << type.semantic();
75 } 79 }
76 return os; 80 return os;
77 } 81 }
78 82
79 } // namespace internal 83 } // namespace internal
80 } // namespace v8 84 } // namespace v8
OLDNEW
« src/compiler/load-elimination.cc ('K') | « src/machine-type.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698