Add FCONST and DCONST groups to InsnMatcher

master
Graham 5 years ago
parent d07b5fd260
commit 3926f7735e
  1. 9
      asm/src/main/java/dev/openrs2/asm/InsnMatcher.java

@ -208,6 +208,15 @@ public final class InsnMatcher {
Opcodes.ICONST_4, Opcodes.ICONST_4,
Opcodes.ICONST_5 Opcodes.ICONST_5
}) })
.put("FCONST", new int[] {
Opcodes.FCONST_0,
Opcodes.FCONST_1,
Opcodes.FCONST_2
})
.put("DCONST", new int[] {
Opcodes.DCONST_0,
Opcodes.DCONST_1
})
.build(); .build();
private static char opcodeToCodepoint(int opcode) { private static char opcodeToCodepoint(int opcode) {

Loading…
Cancel
Save