Index: test/unittests/interpreter/bytecode-array-iterator-unittest.cc |
diff --git a/test/unittests/interpreter/bytecode-array-iterator-unittest.cc b/test/unittests/interpreter/bytecode-array-iterator-unittest.cc |
index cf34867d58c653916ce5ea194136efd2a53d20fa..547910ddc66344c6389360075b07b09d4579bcac 100644 |
--- a/test/unittests/interpreter/bytecode-array-iterator-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-iterator-unittest.cc |
@@ -49,10 +49,10 @@ TEST_F(BytecodeArrayIteratorTest, IteratesBytecodeArray) { |
.StackCheck(1) |
.StoreAccumulatorInRegister(reg_1) |
.LoadAccumulatorWithRegister(reg_0) |
- .BinaryOperation(Token::Value::ADD, reg_0) |
+ .BinaryOperation(Token::Value::ADD, reg_0, 2) |
.StoreAccumulatorInRegister(reg_1) |
.LoadNamedProperty(reg_1, name, feedback_slot) |
- .BinaryOperation(Token::Value::ADD, reg_0) |
+ .BinaryOperation(Token::Value::ADD, reg_0, 3) |
.StoreAccumulatorInRegister(param) |
.CallRuntimeForPair(Runtime::kLoadLookupSlotForCall, param, 1, reg_0) |
.ForInPrepare(reg_0, reg_0) |
@@ -181,7 +181,7 @@ TEST_F(BytecodeArrayIteratorTest, IteratesBytecodeArray) { |
CHECK_EQ(iterator.GetRegisterOperand(0).index(), reg_0.index()); |
CHECK_EQ(iterator.GetRegisterOperandRange(0), 1); |
CHECK(!iterator.done()); |
- offset += Bytecodes::Size(Bytecode::kStar, OperandScale::kSingle); |
+ offset += Bytecodes::Size(Bytecode::kAdd, OperandScale::kSingle); |
iterator.Advance(); |
CHECK_EQ(iterator.current_bytecode(), Bytecode::kStar); |
@@ -209,7 +209,7 @@ TEST_F(BytecodeArrayIteratorTest, IteratesBytecodeArray) { |
CHECK_EQ(iterator.GetRegisterOperand(0).index(), reg_0.index()); |
CHECK_EQ(iterator.GetRegisterOperandRange(0), 1); |
CHECK(!iterator.done()); |
- offset += Bytecodes::Size(Bytecode::kStar, OperandScale::kSingle); |
+ offset += Bytecodes::Size(Bytecode::kAdd, OperandScale::kSingle); |
iterator.Advance(); |
CHECK_EQ(iterator.current_bytecode(), Bytecode::kStar); |