Index: test/cctest/compiler/test-js-typed-lowering.cc |
diff --git a/test/cctest/compiler/test-js-typed-lowering.cc b/test/cctest/compiler/test-js-typed-lowering.cc |
index 2378622b9dd85040fda843901c0e0f759361113d..603b62d9cf54a1c14540d2f0d592d945f4c6df0e 100644 |
--- a/test/cctest/compiler/test-js-typed-lowering.cc |
+++ b/test/cctest/compiler/test-js-typed-lowering.cc |
@@ -835,19 +835,17 @@ void CheckEqualityReduction(JSTypedLoweringTester* R, bool strict, Node* l, |
Node* p1 = j == 1 ? l : r; |
{ |
- Node* eq = strict |
- ? R->graph.NewNode(R->javascript.StrictEqual(), p0, p1, |
- R->context()) |
- : R->Binop(R->javascript.Equal(), p0, p1); |
+ const Operator* op = |
+ strict ? R->javascript.StrictEqual() : R->javascript.Equal(); |
+ Node* eq = R->Binop(op, p0, p1); |
Node* r = R->reduce(eq); |
R->CheckPureBinop(expected, r); |
} |
{ |
- Node* ne = strict |
- ? R->graph.NewNode(R->javascript.StrictNotEqual(), p0, p1, |
- R->context()) |
- : R->Binop(R->javascript.NotEqual(), p0, p1); |
+ const Operator* op = |
+ strict ? R->javascript.StrictNotEqual() : R->javascript.NotEqual(); |
+ Node* ne = R->Binop(op, p0, p1); |
Node* n = R->reduce(ne); |
CHECK_EQ(IrOpcode::kBooleanNot, n->opcode()); |
Node* r = n->InputAt(0); |