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

Unified Diff: src/utils.h

Issue 1487973002: [turbofan] Add binary operation hints for javascript operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
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:

Powered by Google App Engine
This is Rietveld 408576698