[Stackmap] Refactor operand parsing.