KT-12330 Improve bytecode for data class equals/hashCode methods

- Do not longer call hashCode on java/lang/Object but do this
on statically checked type.
- Do not longer call Intrinsics.areEqual but use directly
equals method on statically checked type.

Fix of https://youtrack.jetbrains.com/issue/KT-12330
This commit is contained in:
Mikaël Peltier
2018-04-05 09:03:45 +02:00
committed by Alexander Udalov
parent e6baf0296d
commit 0a11385006
4 changed files with 36 additions and 5 deletions
@@ -0,0 +1,4 @@
data class D(val x: List<String>)
// 1 INVOKEVIRTUAL java/lang/Object.hashCode
// 1 INVOKEVIRTUAL java/lang/Object.equals