Chromium Code Reviews| Index: src/utils.h |
| diff --git a/src/utils.h b/src/utils.h |
| index d24eef7439b5a9450dfd7993b45650e0aaaf3328..ce62c81b8c0128dd46ef8b0262cffb16d5a745ff 100644 |
| --- a/src/utils.h |
| +++ b/src/utils.h |
| @@ -1041,6 +1041,13 @@ class TypeFeedbackId { |
| 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 FeedbackVectorSlot { |
| public: |