Index: src/interpreter/bytecode-array-iterator.cc |
diff --git a/src/interpreter/bytecode-array-iterator.cc b/src/interpreter/bytecode-array-iterator.cc |
index 23cbdcdbbedf56a0aefcc00e65e25ea7d11881e2..e596b11a0568a9fe6edaa5dcd9cc3d68dacb222f 100644 |
--- a/src/interpreter/bytecode-array-iterator.cc |
+++ b/src/interpreter/bytecode-array-iterator.cc |
@@ -140,11 +140,11 @@ int BytecodeArrayIterator::GetRegisterOperandRange(int operand_index) const { |
DCHECK_LE(operand_index, Bytecodes::NumberOfOperands(current_bytecode())); |
const OperandType* operand_types = |
Bytecodes::GetOperandTypes(current_bytecode()); |
- DCHECK(Bytecodes::IsRegisterOperandType(operand_types[operand_index])); |
- if (operand_types[operand_index + 1] == OperandType::kRegCount) { |
+ OperandType operand_type = operand_types[operand_index]; |
+ DCHECK(Bytecodes::IsRegisterOperandType(operand_type)); |
+ if (operand_type == OperandType::kRegList) { |
return GetRegisterCountOperand(operand_index + 1); |
} else { |
- OperandType operand_type = operand_types[operand_index]; |
return Bytecodes::GetNumberOfRegistersRepresentedBy(operand_type); |
} |
} |