Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use correct class name format in anewarray.
  • Loading branch information
jnthn committed Apr 7, 2013
1 parent a23e7ec commit 887e811
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/org/perl6/nqp/jast2bc/JASTToJVMBytecode.java
Expand Up @@ -252,7 +252,6 @@ else if (curLine.startsWith(".push_cc ")) {
else if (curLine.startsWith(".push_idx ")) {
Integer value = Integer.parseInt(curLine.substring(".push_idx ".length()));
m.visitLdcInsn(value);
// il.append(new PUSH(cp, value));
}
else if (curLine.equals(".try")) {
Label start = new Label();
Expand Down Expand Up @@ -620,7 +619,7 @@ else if (rest.equals("Byte"))
m.visitIntInsn(Opcodes.NEWARRAY, type);
break;
case 0xbd: // anewarray
m.visitTypeInsn(Opcodes.ANEWARRAY, processType(rest).getDescriptor());
m.visitTypeInsn(Opcodes.ANEWARRAY, processType(rest).getInternalName());
break;
case 0xbe: // arraylength
m.visitInsn(Opcodes.ARRAYLENGTH);
Expand Down

0 comments on commit 887e811

Please sign in to comment.