Index: src/interpreter/bytecodes.cc |
diff --git a/src/interpreter/bytecodes.cc b/src/interpreter/bytecodes.cc |
index 2d4406cc1bce131e495b786f81b579cea44c1623..1a82f6c117e800e606080a4427668427116f8cd7 100644 |
--- a/src/interpreter/bytecodes.cc |
+++ b/src/interpreter/bytecodes.cc |
@@ -293,14 +293,16 @@ std::ostream& Bytecodes::Decode(std::ostream& os, const uint8_t* bytecode_start, |
} |
break; |
} |
- case interpreter::OperandType::kRegPair8: { |
+ case interpreter::OperandType::kRegPair8: |
+ case interpreter::OperandType::kRegTriple8: { |
Register reg = Register::FromOperand(*operand_start); |
+ int range = op_type == interpreter::OperandType::kRegPair8 ? 1 : 2; |
if (reg.is_parameter()) { |
int parameter_index = reg.ToParameterIndex(parameter_count); |
DCHECK_NE(parameter_index, 0); |
- os << "a" << parameter_index - 1 << "-" << parameter_index; |
+ os << "a" << parameter_index - range << "-" << parameter_index; |
} else { |
- os << "r" << reg.index() << "-" << reg.index() + 1; |
+ os << "r" << reg.index() << "-" << reg.index() + range; |
} |
break; |
} |