Skip to content

Commit

Permalink
Use method Type.getArgumentCount(String) introduced in ASM 9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
andrioli committed Apr 9, 2024
1 parent fa5a279 commit a9987ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/br/usp/each/saeg/asm/defuse/DefUseFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ public void execute(final AbstractInsnNode insn, final Interpreter<Value> interp
case Opcodes.INVOKEINTERFACE: {
values = new ArrayList<Value>();
final String desc = ((MethodInsnNode) insn).desc;
for (int i = Type.getArgumentTypes(desc).length; i > 0; --i) {
for (int i = Type.getArgumentCount(desc); i > 0; --i) {
values.add(0, pop());
}
if (insn.getOpcode() != Opcodes.INVOKESTATIC) {
Expand All @@ -342,7 +342,7 @@ public void execute(final AbstractInsnNode insn, final Interpreter<Value> interp
case Opcodes.INVOKEDYNAMIC: {
values = new ArrayList<Value>();
final String desc = ((InvokeDynamicInsnNode) insn).desc;
for (int i = Type.getArgumentTypes(desc).length; i > 0; --i) {
for (int i = Type.getArgumentCount(desc); i > 0; --i) {
values.add(0, pop());
}
if (Type.getReturnType(desc) == Type.VOID_TYPE) {
Expand Down

0 comments on commit a9987ae

Please sign in to comment.