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

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

Issue 2503183002: [Tracing] Implement IC statistics in tracing. (Closed)
Patch Set: update Created 4 years 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_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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 kSymbol = 1u << 6, 55 kSymbol = 1u << 6,
56 kHeapNumber = 1u << 7, 56 kHeapNumber = 1u << 7,
57 kSimdValue = 1u << 8, 57 kSimdValue = 1u << 8,
58 kAny = kUndefined | kBoolean | kNull | kSmallInteger | kReceiver | kString | 58 kAny = kUndefined | kBoolean | kNull | kSmallInteger | kReceiver | kString |
59 kSymbol | kHeapNumber | kSimdValue, 59 kSymbol | kHeapNumber | kSimdValue,
60 kNeedsMap = kReceiver | kString | kSymbol | kHeapNumber | kSimdValue, 60 kNeedsMap = kReceiver | kString | kSymbol | kHeapNumber | kSimdValue,
61 kCanBeUndetectable = kReceiver, 61 kCanBeUndetectable = kReceiver,
62 }; 62 };
63 63
64 std::ostream& operator<<(std::ostream&, ToBooleanHint); 64 std::ostream& operator<<(std::ostream&, ToBooleanHint);
65 std::string ToString(ToBooleanHint);
65 66
66 typedef base::Flags<ToBooleanHint, uint16_t> ToBooleanHints; 67 typedef base::Flags<ToBooleanHint, uint16_t> ToBooleanHints;
67 68
68 std::ostream& operator<<(std::ostream&, ToBooleanHints); 69 std::ostream& operator<<(std::ostream&, ToBooleanHints);
70 std::string ToString(ToBooleanHints);
69 71
70 DEFINE_OPERATORS_FOR_FLAGS(ToBooleanHints) 72 DEFINE_OPERATORS_FOR_FLAGS(ToBooleanHints)
71 73
72 enum StringAddFlags { 74 enum StringAddFlags {
73 // Omit both parameter checks. 75 // Omit both parameter checks.
74 STRING_ADD_CHECK_NONE = 0, 76 STRING_ADD_CHECK_NONE = 0,
75 // Check left parameter. 77 // Check left parameter.
76 STRING_ADD_CHECK_LEFT = 1 << 0, 78 STRING_ADD_CHECK_LEFT = 1 << 0,
77 // Check right parameter. 79 // Check right parameter.
78 STRING_ADD_CHECK_RIGHT = 1 << 1, 80 STRING_ADD_CHECK_RIGHT = 1 << 1,
79 // Check both parameters. 81 // Check both parameters.
80 STRING_ADD_CHECK_BOTH = STRING_ADD_CHECK_LEFT | STRING_ADD_CHECK_RIGHT, 82 STRING_ADD_CHECK_BOTH = STRING_ADD_CHECK_LEFT | STRING_ADD_CHECK_RIGHT,
81 // Convert parameters when check fails (instead of throwing an exception). 83 // Convert parameters when check fails (instead of throwing an exception).
82 STRING_ADD_CONVERT = 1 << 2, 84 STRING_ADD_CONVERT = 1 << 2,
83 STRING_ADD_CONVERT_LEFT = STRING_ADD_CHECK_LEFT | STRING_ADD_CONVERT, 85 STRING_ADD_CONVERT_LEFT = STRING_ADD_CHECK_LEFT | STRING_ADD_CONVERT,
84 STRING_ADD_CONVERT_RIGHT = STRING_ADD_CHECK_RIGHT | STRING_ADD_CONVERT 86 STRING_ADD_CONVERT_RIGHT = STRING_ADD_CHECK_RIGHT | STRING_ADD_CONVERT
85 }; 87 };
86 88
87 std::ostream& operator<<(std::ostream& os, const StringAddFlags& flags); 89 std::ostream& operator<<(std::ostream& os, const StringAddFlags& flags);
88 90
89 } // namespace internal 91 } // namespace internal
90 } // namespace v8 92 } // namespace v8
91 93
92 #endif // V8_TYPE_HINTS_H_ 94 #endif // V8_TYPE_HINTS_H_
OLDNEW
« src/frames.cc ('K') | « src/tracing/tracing-category-observer.cc ('k') | src/type-hints.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698