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

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

Issue 2639883002: [turbofan] Add Receiver feedback for abstract/strict equality. (Closed)
Patch Set: Created 3 years, 11 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-feedback-vector-inl.h ('k') | src/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_TYPE_HINTS_H_ 5 #ifndef V8_TYPE_HINTS_H_
6 #define V8_TYPE_HINTS_H_ 6 #define V8_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 17 matching lines...) Expand all
28 std::ostream& operator<<(std::ostream&, BinaryOperationHint); 28 std::ostream& operator<<(std::ostream&, BinaryOperationHint);
29 29
30 // Type hints for an compare operation. 30 // Type hints for an compare operation.
31 enum class CompareOperationHint : uint8_t { 31 enum class CompareOperationHint : uint8_t {
32 kNone, 32 kNone,
33 kSignedSmall, 33 kSignedSmall,
34 kNumber, 34 kNumber,
35 kNumberOrOddball, 35 kNumberOrOddball,
36 kInternalizedString, 36 kInternalizedString,
37 kString, 37 kString,
38 kReceiver,
38 kAny 39 kAny
39 }; 40 };
40 41
41 inline size_t hash_value(CompareOperationHint hint) { 42 inline size_t hash_value(CompareOperationHint hint) {
42 return static_cast<unsigned>(hint); 43 return static_cast<unsigned>(hint);
43 } 44 }
44 45
45 std::ostream& operator<<(std::ostream&, CompareOperationHint); 46 std::ostream& operator<<(std::ostream&, CompareOperationHint);
46 47
47 // Type hints for the ToBoolean type conversion. 48 // Type hints for the ToBoolean type conversion.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 STRING_ADD_CONVERT_LEFT = STRING_ADD_CHECK_LEFT | STRING_ADD_CONVERT, 87 STRING_ADD_CONVERT_LEFT = STRING_ADD_CHECK_LEFT | STRING_ADD_CONVERT,
87 STRING_ADD_CONVERT_RIGHT = STRING_ADD_CHECK_RIGHT | STRING_ADD_CONVERT 88 STRING_ADD_CONVERT_RIGHT = STRING_ADD_CHECK_RIGHT | STRING_ADD_CONVERT
88 }; 89 };
89 90
90 std::ostream& operator<<(std::ostream& os, const StringAddFlags& flags); 91 std::ostream& operator<<(std::ostream& os, const StringAddFlags& flags);
91 92
92 } // namespace internal 93 } // namespace internal
93 } // namespace v8 94 } // namespace v8
94 95
95 #endif // V8_TYPE_HINTS_H_ 96 #endif // V8_TYPE_HINTS_H_
OLDNEW
« no previous file with comments | « src/type-feedback-vector-inl.h ('k') | src/type-hints.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698