Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add missing native array cases.
  • Loading branch information
jnthn committed Apr 7, 2013
1 parent 977809b commit 468cb5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/org/perl6/nqp/jast2bc/JASTToJVMBytecode.java
Expand Up @@ -611,8 +611,12 @@ else if (rest.equals("Double"))
type = Opcodes.T_DOUBLE;
else if (rest.equals("Boolean"))
type = Opcodes.T_BOOLEAN;
else if (rest.equals("J") || rest.equals("Long"))
type = Opcodes.T_LONG;
else if (rest.equals("Byte"))
type = Opcodes.T_BYTE;
else
type = Opcodes.T_INT;
throw new RuntimeException("Unknown native array type");
m.visitIntInsn(Opcodes.NEWARRAY, type);
break;
case 0xbd: // anewarray
Expand Down

0 comments on commit 468cb5f

Please sign in to comment.