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

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

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-hint-analyzer.cc ('k') | src/compiler/type-hints.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 #ifndef V8_COMPILER_TYPE_HINTS_H_ 5 #ifndef V8_COMPILER_TYPE_HINTS_H_
6 #define V8_COMPILER_TYPE_HINTS_H_ 6 #define V8_COMPILER_TYPE_HINTS_H_
7 7
8 #include "src/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/utils.h" 9 #include "src/utils.h"
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 std::ostream& operator<<(std::ostream&, BinaryOperationHints::Hint); 57 std::ostream& operator<<(std::ostream&, BinaryOperationHints::Hint);
58 std::ostream& operator<<(std::ostream&, BinaryOperationHints); 58 std::ostream& operator<<(std::ostream&, BinaryOperationHints);
59 59
60 // Type hints for an binary operation. 60 // Type hints for an binary operation.
61 class CompareOperationHints final { 61 class CompareOperationHints final {
62 public: 62 public:
63 enum Hint { 63 enum Hint {
64 kNone, 64 kNone,
65 kBoolean, 65 kBoolean,
66 kSignedSmall, 66 kSignedSmall,
67 kNumber,
67 kNumberOrOddball, 68 kNumberOrOddball,
68 kString, 69 kString,
69 kInternalizedString, 70 kInternalizedString,
70 kUniqueName, 71 kUniqueName,
71 kReceiver, 72 kReceiver,
72 kAny 73 kAny
73 }; 74 };
74 75
75 CompareOperationHints() : CompareOperationHints(kNone, kNone, kNone) {} 76 CompareOperationHints() : CompareOperationHints(kNone, kNone, kNone) {}
76 CompareOperationHints(Hint left, Hint right, Hint combined) 77 CompareOperationHints(Hint left, Hint right, Hint combined)
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 130
130 std::ostream& operator<<(std::ostream&, ToBooleanHints); 131 std::ostream& operator<<(std::ostream&, ToBooleanHints);
131 132
132 DEFINE_OPERATORS_FOR_FLAGS(ToBooleanHints) 133 DEFINE_OPERATORS_FOR_FLAGS(ToBooleanHints)
133 134
134 } // namespace compiler 135 } // namespace compiler
135 } // namespace internal 136 } // namespace internal
136 } // namespace v8 137 } // namespace v8
137 138
138 #endif // V8_COMPILER_TYPE_HINTS_H_ 139 #endif // V8_COMPILER_TYPE_HINTS_H_
OLDNEW
« no previous file with comments | « src/compiler/type-hint-analyzer.cc ('k') | src/compiler/type-hints.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698