Add virtual instruction support to hasSideEffects() and StackMetadata

bzip2
Graham 5 years ago
parent 8c1f2c7b2f
commit f1c6f074a1
  1. 1
      asm/src/main/java/dev/openrs2/asm/InsnNodeUtils.java
  2. 1
      asm/src/main/java/dev/openrs2/asm/StackMetadata.java

@ -115,6 +115,7 @@ public final class InsnNodeUtils {
public static boolean hasSideEffects(AbstractInsnNode insn) {
var opcode = insn.getOpcode();
switch (opcode) {
case -1:
case Opcodes.NOP:
case Opcodes.ACONST_NULL:
case Opcodes.ICONST_M1:

@ -32,6 +32,7 @@ public final class StackMetadata {
public static StackMetadata get(AbstractInsnNode insn) {
var opcode = insn.getOpcode();
switch (opcode) {
case -1:
case Opcodes.NOP:
return NONE;
case Opcodes.ACONST_NULL:

Loading…
Cancel
Save