diff options
Diffstat (limited to 'deps/v8/test/cctest/compiler/codegen-tester.h')
-rw-r--r-- | deps/v8/test/cctest/compiler/codegen-tester.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/deps/v8/test/cctest/compiler/codegen-tester.h b/deps/v8/test/cctest/compiler/codegen-tester.h index 283d533974..d45d1fdc33 100644 --- a/deps/v8/test/cctest/compiler/codegen-tester.h +++ b/deps/v8/test/cctest/compiler/codegen-tester.h @@ -32,7 +32,7 @@ class MachineAssemblerTester : public HandleAndZoneScope, main_isolate(), MakeMachineSignature(main_zone(), return_type, p0, p1, p2, p3, p4)), MachineAssembler( - new (main_zone()) Graph(main_zone()), + main_isolate(), new (main_zone()) Graph(main_zone()), MakeMachineSignature(main_zone(), return_type, p0, p1, p2, p3, p4), kMachPtr, flags) {} @@ -68,8 +68,8 @@ class MachineAssemblerTester : public HandleAndZoneScope, Schedule* schedule = this->Export(); CallDescriptor* call_descriptor = this->call_descriptor(); Graph* graph = this->graph(); - code_ = - Pipeline::GenerateCodeForTesting(call_descriptor, graph, schedule); + code_ = Pipeline::GenerateCodeForTesting(this->isolate(), call_descriptor, + graph, schedule); } return this->code_.ToHandleChecked()->entry(); } @@ -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 |