| Index: test/cctest/compiler/value-helper.h
|
| diff --git a/test/cctest/compiler/value-helper.h b/test/cctest/compiler/value-helper.h
|
| index 83cd33c5b0af90290fcb6ba0e9d08412f00b7aed..7817211c57c6fba2dc57d2a6924c275cb2da389a 100644
|
| --- a/test/cctest/compiler/value-helper.h
|
| +++ b/test/cctest/compiler/value-helper.h
|
| @@ -321,6 +321,12 @@ static inline void CheckFloatEq(volatile float x, volatile float y) {
|
| }
|
| }
|
|
|
| +#define CHECK_FLOAT_EQ(lhs, rhs) \
|
| + do { \
|
| + volatile float tmp = lhs; \
|
| + CheckFloatEq(tmp, rhs); \
|
| + } while (0)
|
| +
|
| static inline void CheckDoubleEq(volatile double x, volatile double y) {
|
| if (std::isnan(x)) {
|
| CHECK(std::isnan(y));
|
| @@ -329,6 +335,12 @@ static inline void CheckDoubleEq(volatile double x, volatile double y) {
|
| }
|
| }
|
|
|
| +#define CHECK_DOUBLE_EQ(lhs, rhs) \
|
| + do { \
|
| + volatile double tmp = lhs; \
|
| + CheckDoubleEq(tmp, rhs); \
|
| + } while (0)
|
| +
|
| } // namespace compiler
|
| } // namespace internal
|
| } // namespace v8
|
|
|