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

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

Issue 2222983002: [turbofan] Also consume number type feedback for abstract equality. (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
« no previous file with comments | « src/compiler/type-hints.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 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/compiler/type-hints.h" 5 #include "src/compiler/type-hints.h"
6 6
7 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace compiler { 9 namespace compiler {
10 10
(...skipping 21 matching lines...) Expand all
32 } 32 }
33 33
34 std::ostream& operator<<(std::ostream& os, CompareOperationHints::Hint hint) { 34 std::ostream& operator<<(std::ostream& os, CompareOperationHints::Hint hint) {
35 switch (hint) { 35 switch (hint) {
36 case CompareOperationHints::kNone: 36 case CompareOperationHints::kNone:
37 return os << "None"; 37 return os << "None";
38 case CompareOperationHints::kBoolean: 38 case CompareOperationHints::kBoolean:
39 return os << "Boolean"; 39 return os << "Boolean";
40 case CompareOperationHints::kSignedSmall: 40 case CompareOperationHints::kSignedSmall:
41 return os << "SignedSmall"; 41 return os << "SignedSmall";
42 case CompareOperationHints::kNumber:
43 return os << "Number";
42 case CompareOperationHints::kNumberOrOddball: 44 case CompareOperationHints::kNumberOrOddball:
43 return os << "NumberOrOddball"; 45 return os << "NumberOrOddball";
44 case CompareOperationHints::kString: 46 case CompareOperationHints::kString:
45 return os << "String"; 47 return os << "String";
46 case CompareOperationHints::kInternalizedString: 48 case CompareOperationHints::kInternalizedString:
47 return os << "InternalizedString"; 49 return os << "InternalizedString";
48 case CompareOperationHints::kUniqueName: 50 case CompareOperationHints::kUniqueName:
49 return os << "UniqueName"; 51 return os << "UniqueName";
50 case CompareOperationHints::kReceiver: 52 case CompareOperationHints::kReceiver:
51 return os << "Receiver"; 53 return os << "Receiver";
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // static 131 // static
130 BinaryOperationHints::Hint BinaryOperationHints::Combine(Hint h1, Hint h2) { 132 BinaryOperationHints::Hint BinaryOperationHints::Combine(Hint h1, Hint h2) {
131 if (Is(h1, h2)) return h2; 133 if (Is(h1, h2)) return h2;
132 if (Is(h2, h1)) return h1; 134 if (Is(h2, h1)) return h1;
133 return kAny; 135 return kAny;
134 } 136 }
135 137
136 } // namespace compiler 138 } // namespace compiler
137 } // namespace internal 139 } // namespace internal
138 } // namespace v8 140 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/type-hints.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698