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

@@ -1,3 +1,3 @@
val a: Byte = 1 + 1
val a: Byte = 1 + 10
// 1 I2B
// 1 BIPUSH 11

View File

@@ -1,5 +1,5 @@
val a: Byte? = -1
val b: Short? = -1
val a: Byte? = -10
val b: Short? = -300
// 1 I2B
// 1 I2S
// 1 BIPUSH -10
// 1 SIPUSH -300

View File

@@ -1,3 +1,3 @@
val a: Short = 1 + 1
val a: Short = 1 + 255
// 1 I2S
// 1 SIPUSH 256