Index: src/interpreter/bytecodes.h |
diff --git a/src/interpreter/bytecodes.h b/src/interpreter/bytecodes.h |
index 6888ef4d6e7ce7c872f606e8c3b234bea0e41e09..d0e32b3f2267468958ba125f1ad582423f9de55d 100644 |
--- a/src/interpreter/bytecodes.h |
+++ b/src/interpreter/bytecodes.h |
@@ -211,8 +211,18 @@ class Register { |
Register reg4 = Register(), |
Register reg5 = Register()); |
- bool operator==(const Register& o) const { return o.index() == index(); } |
- bool operator!=(const Register& o) const { return o.index() != index(); } |
+ bool operator==(const Register& other) const { |
+ return index() == other.index(); |
+ } |
+ bool operator!=(const Register& other) const { |
+ return index() != other.index(); |
+ } |
+ bool operator<(const Register& other) const { |
+ return index() < other.index(); |
+ } |
+ bool operator<=(const Register& other) const { |
+ return index() <= other.index(); |
+ } |
private: |
static const int kIllegalIndex = kMaxInt; |