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 894134a9595f0f35b0b64f01cdff955c046998a6..01c5e9e9c5bcf81dfb1ffa4bfbfa4f76bd4a3755 100644 |
--- a/test/unittests/interpreter/bytecode-array-iterator-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-iterator-unittest.cc |
@@ -60,7 +60,7 @@ TEST_F(BytecodeArrayIteratorTest, IteratesBytecodeArray) { |
.ForInPrepare(reg_0, triple) |
.CallRuntime(Runtime::kLoadIC_Miss, reg_0) |
.Debugger() |
- .LoadGlobal(0x10000000, TypeofMode::NOT_INSIDE_TYPEOF) |
+ .LoadGlobal(name, 0x10000000, TypeofMode::NOT_INSIDE_TYPEOF) |
.Return(); |
// Test iterator sees the expected output from the builder. |
@@ -268,8 +268,8 @@ TEST_F(BytecodeArrayIteratorTest, IteratesBytecodeArray) { |
CHECK_EQ(iterator.current_bytecode(), Bytecode::kLdaGlobal); |
CHECK_EQ(iterator.current_offset(), offset); |
CHECK_EQ(iterator.current_operand_scale(), OperandScale::kQuadruple); |
- CHECK_EQ(iterator.current_bytecode_size(), 6); |
- CHECK_EQ(iterator.GetIndexOperand(0), 0x10000000u); |
+ CHECK_EQ(iterator.current_bytecode_size(), 10); |
+ CHECK_EQ(iterator.GetIndexOperand(1), 0x10000000u); |
offset += Bytecodes::Size(Bytecode::kLdaGlobal, OperandScale::kQuadruple) + |
kPrefixByteSize; |
iterator.Advance(); |