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

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

Issue 2695653005: Revert of Remove SIMD.js from V8. (Closed)
Patch Set: Created 3 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/type-hints.h ('k') | src/type-info.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/type-hints.h" 5 #include "src/type-hints.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 9
10 std::ostream& operator<<(std::ostream& os, BinaryOperationHint hint) { 10 std::ostream& operator<<(std::ostream& os, BinaryOperationHint hint) {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 case ToBooleanHint::kSmallInteger: 62 case ToBooleanHint::kSmallInteger:
63 return os << "SmallInteger"; 63 return os << "SmallInteger";
64 case ToBooleanHint::kReceiver: 64 case ToBooleanHint::kReceiver:
65 return os << "Receiver"; 65 return os << "Receiver";
66 case ToBooleanHint::kString: 66 case ToBooleanHint::kString:
67 return os << "String"; 67 return os << "String";
68 case ToBooleanHint::kSymbol: 68 case ToBooleanHint::kSymbol:
69 return os << "Symbol"; 69 return os << "Symbol";
70 case ToBooleanHint::kHeapNumber: 70 case ToBooleanHint::kHeapNumber:
71 return os << "HeapNumber"; 71 return os << "HeapNumber";
72 case ToBooleanHint::kSimdValue:
73 return os << "SimdValue";
72 case ToBooleanHint::kAny: 74 case ToBooleanHint::kAny:
73 return os << "Any"; 75 return os << "Any";
74 case ToBooleanHint::kNeedsMap: 76 case ToBooleanHint::kNeedsMap:
75 return os << "NeedsMap"; 77 return os << "NeedsMap";
76 } 78 }
77 UNREACHABLE(); 79 UNREACHABLE();
78 return os; 80 return os;
79 } 81 }
80 82
81 std::string ToString(ToBooleanHint hint) { 83 std::string ToString(ToBooleanHint hint) {
82 switch (hint) { 84 switch (hint) {
83 case ToBooleanHint::kNone: 85 case ToBooleanHint::kNone:
84 return "None"; 86 return "None";
85 case ToBooleanHint::kUndefined: 87 case ToBooleanHint::kUndefined:
86 return "Undefined"; 88 return "Undefined";
87 case ToBooleanHint::kBoolean: 89 case ToBooleanHint::kBoolean:
88 return "Boolean"; 90 return "Boolean";
89 case ToBooleanHint::kNull: 91 case ToBooleanHint::kNull:
90 return "Null"; 92 return "Null";
91 case ToBooleanHint::kSmallInteger: 93 case ToBooleanHint::kSmallInteger:
92 return "SmallInteger"; 94 return "SmallInteger";
93 case ToBooleanHint::kReceiver: 95 case ToBooleanHint::kReceiver:
94 return "Receiver"; 96 return "Receiver";
95 case ToBooleanHint::kString: 97 case ToBooleanHint::kString:
96 return "String"; 98 return "String";
97 case ToBooleanHint::kSymbol: 99 case ToBooleanHint::kSymbol:
98 return "Symbol"; 100 return "Symbol";
99 case ToBooleanHint::kHeapNumber: 101 case ToBooleanHint::kHeapNumber:
100 return "HeapNumber"; 102 return "HeapNumber";
103 case ToBooleanHint::kSimdValue:
104 return "SimdValue";
101 case ToBooleanHint::kAny: 105 case ToBooleanHint::kAny:
102 return "Any"; 106 return "Any";
103 case ToBooleanHint::kNeedsMap: 107 case ToBooleanHint::kNeedsMap:
104 return "NeedsMap"; 108 return "NeedsMap";
105 } 109 }
106 UNREACHABLE(); 110 UNREACHABLE();
107 return ""; 111 return "";
108 } 112 }
109 113
110 std::ostream& operator<<(std::ostream& os, ToBooleanHints hints) { 114 std::ostream& operator<<(std::ostream& os, ToBooleanHints hints) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 return os << "ConvertRight"; 158 return os << "ConvertRight";
155 case STRING_ADD_CONVERT: 159 case STRING_ADD_CONVERT:
156 break; 160 break;
157 } 161 }
158 UNREACHABLE(); 162 UNREACHABLE();
159 return os; 163 return os;
160 } 164 }
161 165
162 } // namespace internal 166 } // namespace internal
163 } // namespace v8 167 } // namespace v8
OLDNEW
« no previous file with comments | « src/type-hints.h ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698