diff options
author | 2021-11-01 09:02:09 +0000 | |
---|---|---|
committer | 2021-11-01 10:45:06 +0000 | |
commit | e43aa3f55fd01ce0887059b309a41b6441521e7c (patch) | |
tree | 7ba4ef9adfbb77e6baa1891c3fabd783fb03d580 /test/580-checker-string-fact-intrinsics/src-art/Main.java | |
parent | 808d8cc8114e0c5ee3116639fe9d31be5a70403a (diff) |
Revert^2 "Inline across dex files for bootclaspath's methods"
This reverts commit 8cb989f1019c4fa30845bf2deb5bc996ed4e8966, so we
are re-enabling commit d690f8ae8f8e2675bc52089a83ac18c749f8e6d2.
Reason for revert: Failing test was fixed here
https://android-review.googlesource.com/c/platform/art/+/1873567
Bug: 154012332
Test: ART tests
Change-Id: If159b29583e35abcfe753f30483f83990208b1b9
Diffstat (limited to 'test/580-checker-string-fact-intrinsics/src-art/Main.java')
-rw-r--r-- | test/580-checker-string-fact-intrinsics/src-art/Main.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/580-checker-string-fact-intrinsics/src-art/Main.java b/test/580-checker-string-fact-intrinsics/src-art/Main.java index d0750f9ae8..34af579a4b 100644 --- a/test/580-checker-string-fact-intrinsics/src-art/Main.java +++ b/test/580-checker-string-fact-intrinsics/src-art/Main.java @@ -40,16 +40,14 @@ public class Main { // java.lang.StringFactory.newStringFromChars(char[] data) // // which contains a call to the former (non-public) native method. - // However, this call will not be inlined (because it is a method in - // another Dex file and which contains a call, which needs an - // environment), so we cannot use Checker here to ensure the native - // call was intrinsified either. + // After the inliner runs, we can see the inlined call and check + // that the compiler intrinsifies it. /// CHECK-START: void Main.testNewStringFromChars() builder (after) /// CHECK-DAG: InvokeStaticOrDirect method_name:java.lang.StringFactory.newStringFromChars intrinsic:None /// CHECK-START: void Main.testNewStringFromChars() inliner (after) - /// CHECK-DAG: InvokeStaticOrDirect method_name:java.lang.StringFactory.newStringFromChars intrinsic:None + /// CHECK-DAG: InvokeStaticOrDirect method_name:java.lang.StringFactory.newStringFromChars intrinsic:StringNewStringFromChars public static void testNewStringFromChars() { char[] chars = { 'b', 'a', 'r' }; |