summaryrefslogtreecommitdiff
path: root/test/586-checker-null-array-get
AgeCommit message (Collapse)Author
2020-11-10Verify ART run-tests' standard output and standard error separately.Roland Levillain
Introduce expected standard error files for ART run-tests. Collect tests' standard output and standard error separately and check them against the corresponding expectation file. Test: Run ART run-tests on host and device using `testrunner.py`. Test: atest --test-mapping art:all Test: atest --test-mapping cts/hostsidetests/jvmti:all Bug: 171865375 Bug: 147812905 Change-Id: Ie95bec4a4684ff6791d464124ce8976339432d1f
2020-11-05Rename ART run-tests `expected.txt` files as `expected-stdout.txt`.Roland Levillain
This is in preparation for the addition of `expected-stderr.txt` files in all ART run-test directories, which will record the expected standard error for each of these tests, and which will be verified along with `expected-stdout.txt`. Test: Run ART run-tests on host and device using `testrunner.py`. Test: atest --test-mapping art:all Bug: 171865375 Bug: 147812905 Change-Id: I37e3c4b8409475790e2fc63514cdf57156d47ff4
2018-05-24ART: Remove jack from testOrion Hodson
Test: art/test.py --host Change-Id: I31b0c0d57d344f54a8c0545fd32c81a893b4ec75
2018-05-15Refactoring LSE/LSA: introduce heap location typeAart Bik
Rationale: This refactoring introduces data types to heap locations. This will allow better type disambiguation in the future. As a first showcase, it already removes rather error-prone "exceptional" code in LSE dealing with array types on null values. Furthermore, many LSA specific details started to "leak" into clients, which is also error-prone. This refactoring moves such details back into just LSA, where it belongs. Test: test-art-host,target Bug: b/77906240 Change-Id: Id327bbe86dde451a942c9c5f9e83054c36241882
2017-10-16Make checker-null-array-get less dexer sensitive.Alan Leung
Bug: 65168732 Test: art/test/run-test ... 586-checker-null-array-get Change-Id: Icc4f9e899e494aa0db11a10e7570d496c256e356
2017-10-10Fix USE_D8 in conjunction with USE_D8_BY_DEFAULTAlan Leung
We can no longer use DX=dx. Instead, we can just set USE_D8=false after that USE_D8_BY_DEFAULT change. Bug: 67569208 Test: ./art/test.py --host Change-Id: Ic48157e6a26acc1380fc5ef40076d4e3b65c2b79
2017-10-02Disable D8 for a subset of the testsAlan Leung
Instead of using D8 for those tests, we will continue to run them with DX instead. Keep in mind that as long as D8 is not default yet. This CL is no-op for every build. Bug: 65168732, 65850560, 65203529 Test: USE_D8=true ANDROID_COMPILE_WITH_JACK=false art/test.py -j20 --host -b For 65168732: *-checker-*/build For 65850560: 910-methods/build 911-get-stack-trace/build 913-heaps/build For 65203529: 1929-exception-catch-exception/build Change-Id: I281b013dd93e10dfde0731d05b8d662232861ba5
2017-06-27test: Modify 586-checker-null-array-get for javac/dxIgor Murashkin
Previously 1 of the methods were failing checker with javac/dx. Move their old bytecode to a smali file to retain testing of those optimizations. Rewrite the checker tests in Main.java to use the javac/dx-generated bytecode. Test: art/test/run-test --64 --host --optimizing --build-with-javac-dx 586-checker-null-array-get Bug: 62950048 Bug: 36902714 Change-Id: Ib320509422a358e116c24bb1b33442c0cf09ba25
2016-11-16Change iftable to never be nullMathieu Chartier
Simplifies code generation by removing a null check. The null case is rare. Ritzperf code size: 13107624 -> 13095336 Also addressed comments from previous CL. Bug: 32577579 Test: test-art-host, run ritzperf both with CC Change-Id: I2b31e800867112869d7f0643e16c08826296979e
2016-05-10Relax the DCHECK in load store elimination.Nicolas Geoffray
The DCHECK was too strong, as we could come from a field or array get on null, instead of null directly. bug:27831001 (cherry picked from commit 65fef30952bb92acec7ed36f7f431d93f7ce88b3) Change-Id: Ia3ba1235e95408d66349a02fc438df9c2cf9e255
2016-03-21Call HuntForOriginalReference to get to the null.Nicolas Geoffray
The null constant might be hiding under a HBoundType (which we could clean up in instruction simplifier, but that is orthogonal). bug:27683874 Change-Id: Ide8ec5bcd439ec0fca5e54175ebeedc5a9f679a3
2016-03-17Fix load store elimination bug in the presence of null[i].Nicolas Geoffray
Due to the dex specification, we can be in a state where two array get with the same dex register inputs are typed differently. bug:27683874 Change-Id: Ia821fd32e86c306093372249e7686332a7584263