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:
@@ -1,3 +1,3 @@
|
||||
val a: Byte = 1 + 1
|
||||
val a: Byte = 1 + 10
|
||||
|
||||
// 1 I2B
|
||||
// 1 BIPUSH 11
|
||||
@@ -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
|
||||
@@ -1,3 +1,3 @@
|
||||
val a: Short = 1 + 1
|
||||
val a: Short = 1 + 255
|
||||
|
||||
// 1 I2S
|
||||
// 1 SIPUSH 256
|
||||
Reference in New Issue
Block a user