diff options
author | Alex Light <allight@google.com> | 2021-03-31 22:15:24 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-03-31 22:15:24 +0000 |
commit | 80f5b835d108b40ecc4dbcb9ccffbfd54e2b724b (patch) | |
tree | 88478a8d2131f93552eb5efc4715df3d3ad8aca8 /test/ProfileTestMultiDex | |
parent | 42c1af2b451816cb84700c79e71608ab74df6394 (diff) | |
parent | af9edf364030cf566907caa26c3d4830c7909d74 (diff) |
Better support ICs on virtual calls am: cff30a0bfa am: af9edf3640
Original change: https://android-review.googlesource.com/c/platform/art/+/1654168
Change-Id: I2bbfbdd8e5a8a1c362cb6b9d8e01037bcae43c9d
Diffstat (limited to 'test/ProfileTestMultiDex')
-rw-r--r-- | test/ProfileTestMultiDex/Main.java | 6 | ||||
-rw-r--r-- | test/ProfileTestMultiDex/main.jpp | 5 | ||||
-rw-r--r-- | test/ProfileTestMultiDex/main.list | 1 |
3 files changed, 11 insertions, 1 deletions
diff --git a/test/ProfileTestMultiDex/Main.java b/test/ProfileTestMultiDex/Main.java index a84cb98543..98d4d96281 100644 --- a/test/ProfileTestMultiDex/Main.java +++ b/test/ProfileTestMultiDex/Main.java @@ -72,6 +72,12 @@ class TestInline { } } +class TestInlineSubtype extends TestInline { + public void foobar() { + this.inlineMonomorphic(new SubA()); + } +} + abstract class Secret { abstract int getIdentity(); } diff --git a/test/ProfileTestMultiDex/main.jpp b/test/ProfileTestMultiDex/main.jpp index bd548a88ed..33fede8a5b 100644 --- a/test/ProfileTestMultiDex/main.jpp +++ b/test/ProfileTestMultiDex/main.jpp @@ -1,7 +1,7 @@ Main: @@com.android.jack.annotations.ForceInMainDex class Main -TestInqline: +TestInline: @@com.android.jack.annotations.ForceInMainDex class TestInline Secret: @@ -25,3 +25,6 @@ SubE: ZLotsOfMethods: @@com.android.jack.annotations.ForceInMainDex class ZLotsOfMethods +TestInlineSubtype: + @@com.android.jack.annotations.ForceInMainDex + class TestInlineSubtype diff --git a/test/ProfileTestMultiDex/main.list b/test/ProfileTestMultiDex/main.list index 8ef9280c9e..023f948d0f 100644 --- a/test/ProfileTestMultiDex/main.list +++ b/test/ProfileTestMultiDex/main.list @@ -1,5 +1,6 @@ Main.class TestInline.class +TestInlineSubtype.class Secret.class Super.class SubA.class |