Optimize constant pooling #112

Closed
CommanderTvis wants to merge 3 commits from adv-expr-lconst into adv-expr
Showing only changes of commit 29c6d25967 - Show all commits

View File

@ -257,6 +257,8 @@ internal class AsmBuilder<T> internal constructor(
if (sigLetter != null) {
when (value) {
is Byte -> invokeMethodVisitor.visitLdcOrIntConstant(value.toInt())
is Short -> invokeMethodVisitor.visitLdcOrIntConstant(value.toInt())
is Int -> invokeMethodVisitor.visitLdcOrIntConstant(value)
is Double -> invokeMethodVisitor.visitLdcOrDoubleConstant(value)
is Float -> invokeMethodVisitor.visitLdcOrFloatConstant(value)