mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Use bipush, sipush for byte and short constants
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user