| Index: test/cctest/compiler/value-helper.h
|
| diff --git a/test/cctest/compiler/value-helper.h b/test/cctest/compiler/value-helper.h
|
| index cbde9a741748bde94979345d87fc57b2b3796b16..83cd33c5b0af90290fcb6ba0e9d08412f00b7aed 100644
|
| --- a/test/cctest/compiler/value-helper.h
|
| +++ b/test/cctest/compiler/value-helper.h
|
| @@ -312,6 +312,23 @@ class ValueHelper {
|
|
|
| #define FOR_UINT32_SHIFTS(var) for (uint32_t var = 0; var < 32; var++)
|
|
|
| +// TODO(bmeurer): Drop this crap once we switch to GTest/Gmock.
|
| +static inline void CheckFloatEq(volatile float x, volatile float y) {
|
| + if (std::isnan(x)) {
|
| + CHECK(std::isnan(y));
|
| + } else {
|
| + CHECK_EQ(x, y);
|
| + }
|
| +}
|
| +
|
| +static inline void CheckDoubleEq(volatile double x, volatile double y) {
|
| + if (std::isnan(x)) {
|
| + CHECK(std::isnan(y));
|
| + } else {
|
| + CHECK_EQ(x, y);
|
| + }
|
| +}
|
| +
|
| } // namespace compiler
|
| } // namespace internal
|
| } // namespace v8
|
|
|