Use 'name-hash' mangling scheme

'-' is allowed as a name character both in JVM and in Dalvik, but can't
be a part of a Java identifier.
This commit is contained in:
Dmitry Petrov
2018-08-21 14:14:51 +03:00
committed by Ilya Gorbunov
parent a56d1d3ce8
commit 99498eb7b8
14 changed files with 37 additions and 37 deletions
@@ -14,5 +14,5 @@ inline class Foo(val x: Int) {
// 1 INVOKESTATIC Foo\$Erased.empty \(I\)V
// 1 INVOKESTATIC Foo\$Erased.withParam \(ILjava/lang/String;\)V
// 1 INVOKESTATIC Foo\$Erased.withInlineClassParam\$1e4ch6lh \(II\)V
// 1 INVOKESTATIC Foo\$Erased.withInlineClassParam-1e4ch6lh \(II\)V
// 5 INVOKEVIRTUAL
@@ -23,7 +23,7 @@ fun test(password: Password) {
if (password.password != "OK") throw AssertionError()
}
// 1 public final static test\$9zx0e0j9\(Ljava/lang/String;\)V
// 1 public final static test\$79jv2l6i\(Ljava/lang/String;\)V
// 1 public final static test\$d4pejdz3\(Ljava/lang/String;\)V
// 1 public final static test\$c6sgoxk6\(Ljava/lang/String;\)V
// 1 public final static test-9zx0e0j9\(Ljava/lang/String;\)V
// 1 public final static test-79jv2l6i\(Ljava/lang/String;\)V
// 1 public final static test-d4pejdz3\(Ljava/lang/String;\)V
// 1 public final static test-c6sgoxk6\(Ljava/lang/String;\)V
@@ -7,4 +7,4 @@ class C {
}
// 1 public final getS\(\)Ljava/lang/String;
// 1 public final setS\$90215lrx\(Ljava/lang/String;\)V
// 1 public final setS-90215lrx\(Ljava/lang/String;\)V