Index: test/cctest/compiler/codegen-tester.h |
diff --git a/test/cctest/compiler/codegen-tester.h b/test/cctest/compiler/codegen-tester.h |
index 18903fd85ef0e604c93b22bc2b652b3cb93234f3..d45d1fdc3322fc279185e54b0c2b0be44af15ff7 100644 |
--- a/test/cctest/compiler/codegen-tester.h |
+++ b/test/cctest/compiler/codegen-tester.h |
@@ -332,6 +332,16 @@ class Int32BinopInputShapeTester { |
void RunLeft(RawMachineAssemblerTester<int32_t>* m); |
void RunRight(RawMachineAssemblerTester<int32_t>* m); |
}; |
+ |
+// TODO(bmeurer): Drop this crap once we switch to GTest/Gmock. |
+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 |