Index: test/unittests/interpreter/bytecode-register-optimizer-unittest.cc |
diff --git a/test/unittests/interpreter/bytecode-register-optimizer-unittest.cc b/test/unittests/interpreter/bytecode-register-optimizer-unittest.cc |
index 072a3121d37cd7b711d78e171229e4e056965c43..ca69026fda81f712a01efe11064dcdb5f1ab810a 100644 |
--- a/test/unittests/interpreter/bytecode-register-optimizer-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-register-optimizer-unittest.cc |
@@ -74,8 +74,8 @@ |
TEST_F(BytecodeRegisterOptimizerTest, WriteNopExpression) { |
Initialize(1, 1); |
- BytecodeSourceInfo source_info(3, false); |
- BytecodeNode node(Bytecode::kNop, &source_info); |
+ BytecodeNode node(Bytecode::kNop); |
+ node.source_info().MakeExpressionPosition(3); |
optimizer()->Write(&node); |
CHECK_EQ(write_count(), 1); |
CHECK_EQ(node, last_written()); |
@@ -83,8 +83,8 @@ |
TEST_F(BytecodeRegisterOptimizerTest, WriteNopStatement) { |
Initialize(1, 1); |
- BytecodeSourceInfo source_info(3, true); |
BytecodeNode node(Bytecode::kNop); |
+ node.source_info().MakeStatementPosition(3); |
optimizer()->Write(&node); |
CHECK_EQ(write_count(), 1); |
CHECK_EQ(node, last_written()); |
@@ -97,7 +97,7 @@ |
optimizer()->Write(&node); |
CHECK_EQ(write_count(), 0); |
BytecodeLabel label; |
- BytecodeNode jump(Bytecode::kJump, 0, nullptr); |
+ BytecodeNode jump(Bytecode::kJump, 0); |
optimizer()->WriteJump(&jump, &label); |
CHECK_EQ(write_count(), 2); |
CHECK_EQ(output()->at(0).bytecode(), Bytecode::kStar); |