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

Unified Diff: src/utils.h

Issue 2951473002: Remove enum RelocInfo::CODE_TARGET_WITH_ID. (Closed)
Patch Set: Review update. Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/objects.cc ('k') | test/cctest/heap/test-heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils.h
diff --git a/src/utils.h b/src/utils.h
index 579834f6bc586689d07a075526a00463f285b0cf..786d2cd47223f741e68fa241312510822da45691 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -904,27 +904,6 @@ INT_1_TO_63_LIST(DECLARE_TRUNCATE_TO_INT_N)
#undef DECLARE_IS_UINT_N
#undef DECLARE_TRUNCATE_TO_INT_N
-class TypeFeedbackId {
- public:
- explicit TypeFeedbackId(int id) : id_(id) { }
- int ToInt() const { return id_; }
-
- static TypeFeedbackId None() { return TypeFeedbackId(kNoneId); }
- bool IsNone() const { return id_ == kNoneId; }
-
- private:
- static const int kNoneId = -1;
-
- int id_;
-};
-
-inline bool operator<(TypeFeedbackId lhs, TypeFeedbackId rhs) {
- return lhs.ToInt() < rhs.ToInt();
-}
-inline bool operator>(TypeFeedbackId lhs, TypeFeedbackId rhs) {
- return lhs.ToInt() > rhs.ToInt();
-}
-
class FeedbackSlot {
public:
FeedbackSlot() : id_(kInvalidSlot) {}
« no previous file with comments | « src/objects.cc ('k') | test/cctest/heap/test-heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698