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

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

Issue 2342853002: [TypeFeedbackVector] special ic slots for interpreter compare/binary ops. (Closed)
Patch Set: Code comments. Created 4 years, 3 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
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_TYPE_HINTS_H_
6 #define V8_COMPILER_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
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler {
14 13
15 // Type hints for an binary operation. 14 // Type hints for an binary operation.
16 enum class BinaryOperationHint : uint8_t { 15 enum class BinaryOperationHint : uint8_t {
17 kNone, 16 kNone,
18 kSignedSmall, 17 kSignedSmall,
19 kSigned32, 18 kSigned32,
20 kNumberOrOddball, 19 kNumberOrOddball,
21 kString, 20 kString,
22 kAny 21 kAny
23 }; 22 };
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 }; 59 };
61 60
62 std::ostream& operator<<(std::ostream&, ToBooleanHint); 61 std::ostream& operator<<(std::ostream&, ToBooleanHint);
63 62
64 typedef base::Flags<ToBooleanHint, uint16_t> ToBooleanHints; 63 typedef base::Flags<ToBooleanHint, uint16_t> ToBooleanHints;
65 64
66 std::ostream& operator<<(std::ostream&, ToBooleanHints); 65 std::ostream& operator<<(std::ostream&, ToBooleanHints);
67 66
68 DEFINE_OPERATORS_FOR_FLAGS(ToBooleanHints) 67 DEFINE_OPERATORS_FOR_FLAGS(ToBooleanHints)
69 68
70 } // namespace compiler
71 } // namespace internal 69 } // namespace internal
72 } // namespace v8 70 } // namespace v8
73 71
74 #endif // V8_COMPILER_TYPE_HINTS_H_ 72 #endif // V8_TYPE_HINTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698