Lines Matching defs:lhs
58 #define CHECK_OP(name, op, lhs, rhs) \
61 (lhs), (rhs), #lhs " " #op " " #rhs)) { \
72 #define CHECK_OP(name, op, lhs, rhs) CHECK((lhs)op(rhs))
82 std::string* MakeCheckOpString(Lhs const& lhs, Rhs const& rhs,
85 ss << msg << " (" << lhs << " vs. " << rhs << ")";
113 V8_INLINE std::string* Check##NAME##Impl(Lhs const& lhs, Rhs const& rhs, \
115 return V8_LIKELY(lhs op rhs) ? nullptr : MakeCheckOpString(lhs, rhs, msg); \
117 V8_INLINE std::string* Check##NAME##Impl(int lhs, int rhs, \
119 return V8_LIKELY(lhs op rhs) ? nullptr : MakeCheckOpString(lhs, rhs, msg); \
122 float const& lhs, float const& rhs, char const* msg); \
124 Check##NAME##Impl<double, double>(double const& lhs, double const& rhs, \
134 #define CHECK_EQ(lhs, rhs) CHECK_OP(EQ, ==, lhs, rhs)
135 #define CHECK_NE(lhs, rhs) CHECK_OP(NE, !=, lhs, rhs)
136 #define CHECK_LE(lhs, rhs) CHECK_OP(LE, <=, lhs, rhs)
137 #define CHECK_LT(lhs, rhs) CHECK_OP(LT, <, lhs, rhs)
138 #define CHECK_GE(lhs, rhs) CHECK_OP(GE, >=, lhs, rhs)
139 #define CHECK_GT(lhs, rhs) CHECK_OP(GT, >, lhs, rhs)
142 #define CHECK_IMPLIES(lhs, rhs) CHECK(!(lhs) || (rhs))