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 b2708562648c3c120301d27e39a8751365e38b11..18986841f6cff67998650484c2fc3c11dc58bdff 100644 |
--- a/test/unittests/interpreter/bytecode-array-iterator-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-iterator-unittest.cc |
@@ -37,6 +37,9 @@ TEST_F(BytecodeArrayIteratorTest, IteratesBytecodeArray) { |
Register reg_2 = Register::FromParameterIndex(2, builder.parameter_count()); |
int feedback_slot = 97; |
+ // TODO(rmcilroy): Add a test for a bytecode with a short operand when |
+ // the CallRuntime bytecode is landed. |
+ |
builder.LoadLiteral(heap_num_0) |
.LoadLiteral(heap_num_1) |
.LoadLiteral(zero) |
@@ -64,7 +67,7 @@ TEST_F(BytecodeArrayIteratorTest, IteratesBytecodeArray) { |
iterator.Advance(); |
CHECK_EQ(iterator.current_bytecode(), Bytecode::kLdaSmi8); |
- CHECK_EQ(Smi::FromInt(iterator.GetSmi8Operand(0)), smi_0); |
+ CHECK_EQ(Smi::FromInt(iterator.GetImmediateOperand(0)), smi_0); |
CHECK(!iterator.done()); |
iterator.Advance(); |