summaryrefslogtreecommitdiffstats
path: root/tools/dex-preopt
Commit message (Collapse)AuthorAgeFilesLines
* Dalvik is dead, long live Dalvik!Brian Carlstrom2014-08-051-320/+0
| | | | | | | | | | | | | | | | | | | | | | | croot cd dalvik repo start dalvik-is-dead-long-live-dalvik . repo sync -c . git rm -r README.txt git rm -r dexopt git rm -r tools/deadcode.py git rm -r tools/dex-preopt git rm -r tools/dexcheck git rm -r tools/gdbjithelper git rm -r unit-tests git rm -r vm git checkout HEAD vm/Common.h (needed by libdex) git checkout HEAD vm/DalvikVersion.h (needed by libdex) git checkout HEAD vm/Profile.h (needed by dmtracedump) git add Android.mk (after removing vm, dexopt, and unit-tests references) git commit -a -m 'Dalvik is dead, long live Dalvik!' Bug: 14298175 Change-Id: I9dd13053677629d13496d4238af4374452cda415
* Be explicit about both uniprocessor and SMP when calling dexopt.Dan Bornstein2010-09-301-0/+2
| | | | Change-Id: Ic1b68dddf6822773041de6023c594a062e141325
* Add --uniprocessor option to dex-preopt.Dan Bornstein2010-09-281-34/+45
| | | | | | | | | | | | | | This tells the preoptimizer to target a uniprocessor (unsurprisingly). By default, it targets SMP, which makes it do more changes than it has to for a uniprocessor (e.g. editing how non-wide volatile fields are accessed within bytecode). To be clear, when SMP-optimized code is run on a uniprocessor, it should still work. We're just aiming to only make truly necessary changes during optimization. While I was in the territory, I went ahead and cleaned up some single vs. double quote hygiene in the file. Change-Id: Ia45992939a436d0be6db8363c43d430de4acb80b
* Insert "/./" into the input file path when necessary.Dan Bornstein2010-09-201-4/+12
| | | | | | | This is necessary, in particular, when the input file is on the boot classpath. Change-Id: I18822d7b2eceba0eb15d5548a87bff5bb641788f
* Add --dexopt option to explicitly specify the dexopt binary.Dan Bornstein2010-09-171-10/+26
| | | | | | Also, cleaned up the docs and usage message a little. Change-Id: I5bb0ce1b4f8153c19da69fca05cd9318c7e02536
* Modify dex-preopt to take better arguments for the build process.Dan Bornstein2010-09-171-29/+46
| | | | | | | | | In particular, it now takes a --product-dir that doesn't assume any particular build tree structure, and it takes a --boot-dir for the target path (which will be under the product-dir) for the boot classpath files. Change-Id: I8986f1d4d37330ab32ebe8b55d38bdd5e24d4aaf
* Make the app processing variant of dex-preopt more consistent.Dan Bornstein2010-09-151-1/+2
| | | | | | | In particular, make it take paths relative to the product, just like how the bootclasspath is found and processed. Change-Id: I3f2a98a6bf6bbcf3145cf9be8edc1c3be4d763b9
* Clarify the use of --boot-dirs in the header comment.Dan Bornstein2010-09-141-3/+7
| | | | Change-Id: I89cf275e6188d5615bfb4e45fe35580b0ebe5be2
* Add use of sentinel in BOOTCLASSPATH entries during preopt.Dan Bornstein2010-09-141-2/+8
| | | | | | | | | | | | | | | | | This change introduces the use of the sentinel string "/./" inside BOOTCLASSPATH entries to signal the start of the portion of the paths that should be preserved in optimized dex file dependency lists. It's a little grotty, but it does serve the purpose of allowing host side dexopt to do its thing inside a build directory without letting the host path leading up to that build directory to leak into the results. This change also makes it an error (instead of just a warning) for there to be BOOTCLASSPATH entries that are not absolute paths (either truly absolute or ones with the sentinels as per above). FWIW, dx uses this sentinel in a similar way. Change-Id: Ic8d0533d3ee0bd7a1d4d06fcf9232c56f0a60abf
* First possibly-working cut of dex-preopt.Dan Bornstein2010-09-131-59/+90
| | | | Change-Id: I65c8ca76d75285ebd510babe5d0b3e0a157f82b7
* Flesh out dex-preopt a bit more.Dan Bornstein2010-09-131-1/+45
| | | | | | It's still not done. Change-Id: I8b1cbe14841f12c8f299638c1ddaeec659ec441b
* Pre-alpha cut of the new dex preoptimization script.Dan Bornstein2010-09-121-0/+180
This will successfully find all the right directories etc., but it doesn't do any actual dex processing yet. Stay tuned! Change-Id: I4926308231366d6bae7b6a4594b4edb99192bf42