forked from kscience/kmath
Optimize constant pooling for Byte and Short
This commit is contained in:
parent
e99f7ad360
commit
29c6d25967
@ -257,6 +257,8 @@ internal class AsmBuilder<T> internal constructor(
|
|||||||
|
|
||||||
if (sigLetter != null) {
|
if (sigLetter != null) {
|
||||||
when (value) {
|
when (value) {
|
||||||
|
is Byte -> invokeMethodVisitor.visitLdcOrIntConstant(value.toInt())
|
||||||
|
is Short -> invokeMethodVisitor.visitLdcOrIntConstant(value.toInt())
|
||||||
is Int -> invokeMethodVisitor.visitLdcOrIntConstant(value)
|
is Int -> invokeMethodVisitor.visitLdcOrIntConstant(value)
|
||||||
is Double -> invokeMethodVisitor.visitLdcOrDoubleConstant(value)
|
is Double -> invokeMethodVisitor.visitLdcOrDoubleConstant(value)
|
||||||
is Float -> invokeMethodVisitor.visitLdcOrFloatConstant(value)
|
is Float -> invokeMethodVisitor.visitLdcOrFloatConstant(value)
|
||||||
|
Loading…
Reference in New Issue
Block a user