Lines Matching refs:rhs
57 #define CHECK_OP(name, op, lhs, rhs) \ argument
60 (lhs), (rhs), #lhs " " #op " " #rhs)) { \
71 #define CHECK_OP(name, op, lhs, rhs) CHECK((lhs)op(rhs))
81 std::string* MakeCheckOpString(Lhs const& lhs, Rhs const& rhs, in MakeCheckOpString() argument
84 ss << msg << " (" << lhs << " vs. " << rhs << ")"; in MakeCheckOpString()
112 V8_INLINE std::string* Check##NAME##Impl(Lhs const& lhs, Rhs const& rhs, \
114 return V8_LIKELY(lhs op rhs) ? nullptr : MakeCheckOpString(lhs, rhs, msg); \
116 V8_INLINE std::string* Check##NAME##Impl(int lhs, int rhs, \
118 return V8_LIKELY(lhs op rhs) ? nullptr : MakeCheckOpString(lhs, rhs, msg); \
121 float const& lhs, float const& rhs, char const* msg); \
123 double const& lhs, double const& rhs, char const* msg);
132 #define CHECK_EQ(lhs, rhs) CHECK_OP(EQ, ==, lhs, rhs) argument
133 #define CHECK_NE(lhs, rhs) CHECK_OP(NE, !=, lhs, rhs) argument
134 #define CHECK_LE(lhs, rhs) CHECK_OP(LE, <=, lhs, rhs) argument
135 #define CHECK_LT(lhs, rhs) CHECK_OP(LT, <, lhs, rhs) argument
136 #define CHECK_GE(lhs, rhs) CHECK_OP(GE, >=, lhs, rhs) argument
137 #define CHECK_GT(lhs, rhs) CHECK_OP(GT, >, lhs, rhs) argument
140 #define CHECK_IMPLIES(lhs, rhs) CHECK(!(lhs) || (rhs)) argument