Skip to content

Commit

Permalink
Also include BLW extended opcodes in string mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
Col-E committed Jan 31, 2025
1 parent be94bd5 commit 252794f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package software.coley.recaf.util;

import dev.xdark.blw.asm.internal.Util;
import dev.xdark.blw.code.ExtensionOpcodes;
import dev.xdark.blw.code.Instruction;
import dev.xdark.blw.code.JavaOpcodes;
import dev.xdark.blw.code.Label;
import dev.xdark.blw.code.generic.GenericLabel;
import dev.xdark.blw.code.instruction.BranchInstruction;
@@ -112,7 +112,7 @@ private static String toString(@Nonnull Instruction insn) {
int op = insn.opcode();
if (insn instanceof LabelInstruction label) {
printer.label(label);
} else if (op >= 0 && op < JavaOpcodes.WIDE) {
} else if (op >= 0 && op <= ExtensionOpcodes.PRIMITIVE_CONVERSION) {
ExecutionEngines.execute(printer, insn);
} else {
// The current search models shouldn't yield anything aside from the above types.

0 comments on commit 252794f

Please # to comment.