summaryrefslogtreecommitdiffstats
path: root/compiler/linker
Commit message (Collapse)AuthorAgeFilesLines
* Move mirror::ArtMethod to nativeMathieu Chartier2015-06-022-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Optimizing + quick tests are passing, devices boot. TODO: Test and fix bugs in mips64. Saves 16 bytes per most ArtMethod, 7.5MB reduction in system PSS. Some of the savings are from removal of virtual methods and direct methods object arrays. Bug: 19264997 (cherry picked from commit e401d146407d61eeb99f8d6176b2ac13c4df1e33) Change-Id: I622469a0cfa0e7082a2119f3d6a9491eb61e3f3d Fix some ArtMethod related bugs Added root visiting for runtime methods, not currently required since the GcRoots in these methods are null. Added missing GetInterfaceMethodIfProxy in GetMethodLine, fixes --trace run-tests 005, 044. Fixed optimizing compiler bug where we used a normal stack location instead of double on ARM64, this fixes the debuggable tests. TODO: Fix JDWP tests. Bug: 19264997 Change-Id: I7c55f69c61d1b45351fd0dc7185ffe5efad82bd3 ART: Fix casts for 64-bit pointers on 32-bit compiler. Bug: 19264997 Change-Id: Ief45cdd4bae5a43fc8bfdfa7cf744e2c57529457 Fix JDWP tests after ArtMethod change Fixes Throwable::GetStackDepth for exception event detection after internal stack trace representation change. Adds missing ArtMethod::GetInterfaceMethodIfProxy call in case of proxy method. Bug: 19264997 Change-Id: I363e293796848c3ec491c963813f62d868da44d2 Fix accidental IMT and root marking regression Was always using the conflict trampoline. Also included fix for regression in GC time caused by extra roots. Most of the regression was IMT. Fixed bug in DumpGcPerformanceInfo where we would get SIGABRT due to detached thread. EvaluateAndApplyChanges: From ~2500 -> ~1980 GC time: 8.2s -> 7.2s due to 1s less of MarkConcurrentRoots Bug: 19264997 Change-Id: I4333e80a8268c2ed1284f87f25b9f113d4f2c7e0 Fix bogus image test assert Previously we were comparing the size of the non moving space to size of the image file. Now we properly compare the size of the image space against the size of the image file. Bug: 19264997 Change-Id: I7359f1f73ae3df60c5147245935a24431c04808a [MIPS64] Fix art_quick_invoke_stub argument offsets. ArtMethod reference's size got bigger, so we need to move other args and leave enough space for ArtMethod* and 'this' pointer. This fixes mips64 boot. Bug: 19264997 Change-Id: I47198d5f39a4caab30b3b77479d5eedaad5006ab
* ART: Add compiled-methodsAndreas Gampe2015-04-211-1/+1
| | | | | | | | | | | Add a dex2oat option for compiled-methods, a more granular filter than compiled-classes. Add compiler-driver support for it. Refactor dex2oat to reuse file reading. Add a test to oat_test. Change-Id: I78d0d040bce7738b4bb7aabe7768b5788d2587ac
* Merge "Refine erratum 843419 check for linker workaround."Vladimir Marko2015-04-102-9/+102
|\
| * Refine erratum 843419 check for linker workaround.Matteo Franchin2015-04-092-9/+102
| | | | | | | | | | | | | | The check is extended to avoid patching sequences where the adrp is followed by a load which can easily be proved to be aligned. Change-Id: Ia5741e3d73bc143c29bf0e301f767012d7598171
* | Quick: PC-relative loads from dex cache arrays on x86.Vladimir Marko2015-04-092-5/+64
|/ | | | | | | | | Rewrite all PC-relative addressing on x86 and implement PC-relative loads from dex cache arrays. Don't adjust the base to point to the start of the method, let it point to the anchor, i.e. the target of the "call +0" insn. Change-Id: Ic22544a8bc0c5e49eb00a75154dc8f3ead816989
* PC-relative loads from dex cache arrays for arm.Vladimir Marko2015-04-073-12/+114
| | | | Change-Id: Ic25df4b51a901ff1d2ca356b5eec71d4acc5d9b7
* ART: Enable more Clang warningsAndreas Gampe2015-04-061-5/+0
| | | | Change-Id: Ie6aba02f4223b1de02530e1515c63505f37e184c
* Pass linker patches around as const.Vladimir Marko2015-04-025-37/+39
| | | | Change-Id: I0eabd713d29475db9eb6e186f331dbfb00e0cf6b
* Split RelativePatcher::ReserveSpace() into two.Vladimir Marko2015-04-029-23/+50
| | | | | | | | Instead of passing nullptr and MethodReference(nullptr, 0u) to ReserveSpace() at the end, call a newly created function ReserveSpaceEnd(). Change-Id: I38815fe9464b4e1a919878b6e8577614f1058d00
* Add tests for Arm64RelativePatcher.Vladimir Marko2015-04-023-5/+529
| | | | Change-Id: I9d2c21d323137ac143eabb8fdf6ca075bae45c51
* Add tests for Thumb2RelativePatcher.Vladimir Marko2015-04-0212-77/+431
| | | | | | | | Also make the thumb2/arm64 thunk allocation precise instead of eagerly allocating thunk space. This allows the calls to use the maximum positive offset. Change-Id: Ifa95b0bb00bd73eeab0c2905d21e2f3078f4b0a8
* Refactor RelativePatcher out of OatWriter.Vladimir Marko2015-04-0217-0/+1632
Move the relative patcher classes to compiler/linker/ and compiler/linker/<arch>/ . Refactor them to avoid OatWriter dependency so that they can be unit tested. Add tests for x86 and x86-64. Change-Id: I1b42baa9fc431378e4cce1399bec590c5b5a409f