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

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

Issue 2506013005: [Interpreter] Collect String feedback on CompareOps. (Closed)
Patch Set: Fix kAny Created 4 years, 1 month 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 18 matching lines...) Expand all
29 std::ostream& operator<<(std::ostream& os, CompareOperationHint hint) { 29 std::ostream& operator<<(std::ostream& os, CompareOperationHint hint) {
30 switch (hint) { 30 switch (hint) {
31 case CompareOperationHint::kNone: 31 case CompareOperationHint::kNone:
32 return os << "None"; 32 return os << "None";
33 case CompareOperationHint::kSignedSmall: 33 case CompareOperationHint::kSignedSmall:
34 return os << "SignedSmall"; 34 return os << "SignedSmall";
35 case CompareOperationHint::kNumber: 35 case CompareOperationHint::kNumber:
36 return os << "Number"; 36 return os << "Number";
37 case CompareOperationHint::kNumberOrOddball: 37 case CompareOperationHint::kNumberOrOddball:
38 return os << "NumberOrOddball"; 38 return os << "NumberOrOddball";
39 case CompareOperationHint::kString:
40 return os << "String";
39 case CompareOperationHint::kAny: 41 case CompareOperationHint::kAny:
40 return os << "Any"; 42 return os << "Any";
41 } 43 }
42 UNREACHABLE(); 44 UNREACHABLE();
43 return os; 45 return os;
44 } 46 }
45 47
46 std::ostream& operator<<(std::ostream& os, ToBooleanHint hint) { 48 std::ostream& operator<<(std::ostream& os, ToBooleanHint hint) {
47 switch (hint) { 49 switch (hint) {
48 case ToBooleanHint::kNone: 50 case ToBooleanHint::kNone:
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 return os << "ConvertRight"; 107 return os << "ConvertRight";
106 case STRING_ADD_CONVERT: 108 case STRING_ADD_CONVERT:
107 break; 109 break;
108 } 110 }
109 UNREACHABLE(); 111 UNREACHABLE();
110 return os; 112 return os;
111 } 113 }
112 114
113 } // namespace internal 115 } // namespace internal
114 } // namespace v8 116 } // 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