Use bipush, sipush for byte and short constants

This commit is contained in:
Michael Bogdanov
2016-02-12 10:39:31 +03:00
parent 0073257841
commit 384d2ea0d1
6 changed files with 13 additions and 13 deletions

View File

@@ -4,7 +4,7 @@ public class JClass {
public final static int PrimitiveInt = 9000;
public final static int BigPrimitiveInt = 59000;
public final static long PrimitiveLong = 100000;
public final static short PrimitiveShort = 900;
public final static short PrimitiveShort = 901;
public final static boolean PrimitiveBool = false;
public final static float PrimitiveFloat = 36.6;
public final static double PrimitiveDouble = 42.4242;

View File

@@ -31,10 +31,10 @@ fun test() {
// 1 LDC 9223372036854775807
// 1 SIPUSH 9000
// 1 LDC 59000
// 1 LDC -8
// 1 BIPUSH -8
// 1 LDC K
// 1 LDC 100000
// 1 LDC 900
// 1 SIPUSH 901
// 1 LDC false
// 1 LDC 36.6
// 1 LDC 42.4242