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 e8a49579d7956ff9d7517fc3f024a494189064fd..1cf907cf9b3dcc1412c007bd8af7d11a10d531c8 100644 |
--- a/test/unittests/interpreter/bytecode-array-iterator-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-iterator-unittest.cc |
@@ -36,6 +36,7 @@ TEST_F(BytecodeArrayIteratorTest, IteratesBytecodeArray) { |
Register reg_0(0); |
Register reg_1(1); |
Register reg_2 = Register::FromParameterIndex(2, builder.parameter_count()); |
+ int name_index = 21; |
int feedback_slot = 97; |
builder.LoadLiteral(heap_num_0) |
@@ -44,7 +45,7 @@ TEST_F(BytecodeArrayIteratorTest, IteratesBytecodeArray) { |
.LoadLiteral(smi_0) |
.LoadLiteral(smi_1) |
.LoadAccumulatorWithRegister(reg_0) |
- .LoadNamedProperty(reg_1, feedback_slot, LanguageMode::SLOPPY) |
+ .LoadNamedProperty(reg_1, name_index, feedback_slot, LanguageMode::SLOPPY) |
.StoreAccumulatorInRegister(reg_2) |
.CallRuntime(Runtime::kLoadIC_Miss, reg_0, 1) |
.Return(); |
@@ -82,7 +83,8 @@ TEST_F(BytecodeArrayIteratorTest, IteratesBytecodeArray) { |
CHECK_EQ(iterator.current_bytecode(), Bytecode::kLoadICSloppy); |
CHECK_EQ(iterator.GetRegisterOperand(0).index(), reg_1.index()); |
- CHECK_EQ(iterator.GetIndexOperand(1), feedback_slot); |
+ CHECK_EQ(iterator.GetIndexOperand(1), name_index); |
+ CHECK_EQ(iterator.GetIndexOperand(2), feedback_slot); |
CHECK(!iterator.done()); |
iterator.Advance(); |