JVM_IR: do not do invokeinterface on Object methods

This works on HotSpot, but might confuse other VMs.
This commit is contained in:
pyos
2019-12-10 11:05:31 +01:00
committed by max-kammerer
parent df0a86ea57
commit 498b41b148
13 changed files with 89 additions and 8 deletions

View File

@@ -0,0 +1,5 @@
val x: () -> Unit = {}
val y = x.hashCode()
// 1 INVOKEVIRTUAL java/lang/Object.hashCode \(\)I
// 0 INVOKEINTERFACE