summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | Jack support for annotation processor.Yohann Roussel2015-03-1041-187/+1542
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Does not include any support for including class files generated by annotation processors. Change-Id: Id4006301d588875f822ff84fa90db10fd616ab00
* | | | | | Merge "Add Javadoc for Api01Config" into ub-jackBenoit Lamarche2015-03-101-2/+123
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Add Javadoc for Api01ConfigBenoit Lamarche2015-03-101-2/+123
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I74cca38795068f3ca78c4c2271a5d57c53831932
* | | | | | Create jack-api-src.zipJean-Marie Henaff2015-03-102-2/+20
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | Also remove example from jack-api.jar. Change-Id: I4cfb569cada64cfd03f1413994f68969e7af8ab3
* | | | | Merge "Add working directory support in ConfigBuilder" into ub-jackBenoit Lamarche2015-03-103-2/+62
|\ \ \ \ \
| * | | | | Add working directory support in ConfigBuilderBenoit Lamarche2015-03-103-2/+62
| | |/ / / | |/| | | | | | | | | | | | | Change-Id: Ie34d79830b53b5dcbc6b7edbaa7617c7466b9f3d
* | | | | Merge "Add test target with no dependencies" into ub-jackJean-Marie Henaff2015-03-101-23/+36
|\ \ \ \ \
| * | | | | Add test target with no dependenciesJean-Marie Henaff2015-03-101-23/+36
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done for test server that needs to invoke these targets in parallel. Currently this does not work because dependencies trigger processes that cannot be run in parallel. Change-Id: I92cfa9382a2bc25de57b5de9f107743883badb67
* | | | | Merge "Add missing API Javadoc" into ub-jackBenoit Lamarche2015-03-107-8/+60
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | Add missing API JavadocBenoit Lamarche2015-03-107-8/+60
| |/ / / | | | | | | | | | | | | Change-Id: I2a76b2d17fb721e9472e98db751b43f3c54f8b90
* | | | Merge "Jack can fail to override repackageclasses and ↵mikaelpeltier2015-03-101-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | flattenpackagehierarchy" into ub-jack
| * | | | Jack can fail to override repackageclasses and flattenpackagehierarchymikaelpeltier2015-03-101-2/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The variable newPackage into rules repackageclasses and flattenpackagehierarchy is redefined only when optional part of the rule is executed. If this optional part is not executed then the previous value of newPackage is used. To avoid this problem, the variable newPackage is cleared after his usage. Bug: 19363928 Change-Id: Iab3af01dc462ccf03945268fef69e1b723dd62e5
* | | | Add a service provider for JackConfigProvidermikaelpeltier2015-03-103-2/+43
|/ / / | | | | | | | | | Change-Id: Ib599f5b012aec9d15c71fd314fe859628e855c00
* | | Fix build breakage due to incompatible cleaning stuff on debugmikaelpeltier2015-03-101-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | - Use EMIT_LOCAL_DEBUG_INFO property rather than setter which does not longer exists. Set all properties without taking into account default value since they can change in the future. Change-Id: If0a25fec859befe4337ef58117065ea0691ea990
* | | Merge "Adapt shrob tests to get rid of setShrobFlags" into ub-jackJean-Marie Henaff2015-03-106-58/+75
|\ \ \
| * | | Adapt shrob tests to get rid of setShrobFlagsJean-Marie Henaff2015-03-096-58/+75
| | | | | | | | | | | | | | | | | | | | | | | | Thus, it works both with new api and cli Change-Id: Ifc9fc48b6a99df92345d6cfcc1e6466b6026c2df
* | | | Rework printProblem filteringBenoit Lamarche2015-03-096-41/+78
| | | | | | | | | | | | | | | | Change-Id: Id3bffec738a261a9a9de98a6f0b98cd603d878e1
* | | | Clean Options from useless stuff about debug infoYohann Roussel2015-03-091-13/+0
|/ / / | | | | | | | | | | | | | | | | | | This also allows setting the property CodeItemBuilder.EMIT_SYNTHETIC_LOCAL_DEBUG_INFO. Change-Id: I89f79a8fb3ced291a27ba9ea8735fb8667b41174
* | | Implement Api01Configmikaelpeltier2015-03-097-175/+272
| | | | | | | | | | | | Change-Id: I455d060994c59fecf5dbad2a1b4ff0905cb7df61
* | | Fix testCommandLineError002Benoit Lamarche2015-03-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | The test used to check that it printed the ECJ usage. We don't want that anymore. Let's check that Jack does not crash and does not print anything, for now at least. Change-Id: I981b22be56382277c19daffbdf13f1fd32fbbab0
* | | Revert "Revert "Start using jack-api for jack API based test toolchains""Jean-Marie Hénaff2015-03-0931-421/+572
| | | | | | | | | | | | | | | | | | This reverts commit b43732ee3d9f9ffcd7595ab657e4c683a1751b3a. Change-Id: Id9fbfcd8f7aebca1136bfcbbf9e37359dc42a19d
* | | Merge "Add Javadoc for Enums of API" into ub-jackBenoit Lamarche2015-03-093-4/+33
|\ \ \
| * | | Add Javadoc for Enums of APIBenoit Lamarche2015-03-093-4/+33
| | | | | | | | | | | | | | | | Change-Id: I2c7dffe2e2af1eac9d8ddce3066e07a940349aea
* | | | Add property for reporter streammikaelpeltier2015-03-097-3/+47
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 18546725 Change-Id: Ie91b463bfb494f9608c4ea68316ac086bda64058
* | | | Fix bug in duplicate PropertyId.Valuemikaelpeltier2015-03-092-7/+3
| | | | | | | | | | | | | | | | Change-Id: I99c8a7e73e774213b745633e2d970210f58274d0
* | | | Duplicate PropertyId.Value when usedmikaelpeltier2015-03-092-1/+37
|/ / / | | | | | | | | | Change-Id: Ic7c6f047bdbb29690233848cfe225508612e2f6f
* | | Handle input sources as a propertyYohann Roussel2015-03-0916-37/+82
| | | | | | | | | | | | Change-Id: I91e3c26270f821741fa79f3d972e5b1454b00b0e
* | | Ensure legacy options are accessed by propertyYohann Roussel2015-03-096-31/+21
| | | | | | | | | | | | Change-Id: I6222d55a77194f87677a2b9007793fae33018a82
* | | Access debug options only through propertiesYohann Roussel2015-03-091-9/+22
|/ / | | | | | | Change-Id: I8d4621456d1733628aa9bb07a5a73ffea7ec71b5
* | Rename junit report file for test-jack-allJean-Marie Henaff2015-03-091-1/+1
| | | | | | | | Change-Id: I6962ea9c9f849e8c78a276bbb79712517d4bb871
* | Bump version to 1.1-a7Benoit Lamarche2015-03-061-1/+1
| | | | | | | | Change-Id: Ifb8a8033f3129953b7e789376a8535c26e377bb9
* | Merge "Revert "Avoid comparing full signatures of methods."" into ub-jackPiotr Jastrzebski2015-03-061-15/+1
|\ \
| * | Revert "Avoid comparing full signatures of methods."Piotr Jastrzebski2015-03-061-15/+1
| | | | | | | | | | | | | | | | | | This reverts commit fee08e7f4affb336c3a07a2e55ec7a942de03087. Change-Id: I8732c4b06ade19dab214d196242e0c7f12753d19
* | | Merge "Revert "Start using jack-api for jack API based test toolchains"" ↵Jean-Marie Hénaff2015-03-0631-572/+412
|\ \ \ | |/ / |/| | | | | into ub-jack
| * | Revert "Start using jack-api for jack API based test toolchains"Jean-Marie Hénaff2015-03-0631-572/+412
| |/ | | | | | | | | | | This reverts commit d235ed6f21b7b21aefb4b066b0c64acfa2bbb229. Change-Id: Idceeda07056275eb887d42a5aa75b624024554e0
* | Avoid comparing full signatures of methods.Piotr Jastrzebski2015-03-061-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TypePackageAndMethodFormatter.getName(JMethod) is not cheap both cpu and memory wise. In ReferenceMapper.findMethod we don't need to compare MethodBindings with signature of every method. Instead we can first compare the name of the method and the number of parameters and only when those are equal check the full signature. This saves a lot of memory allocations. Before findMethod was making 1,215,894 allocations for over 77MB of memory. After this change it makes only 84,391 allocations for 5MB of memory. This reduces the total amount of memory used during compilation (org.eclipse.jdt.internal.compiler.ProcessTaskManager.run) from 951MB to 879MB which is over 7.5%. Change-Id: Ibfe907ddd580d8851d0349d069fb85e0c032cc77
* | Merge "Avoid StringBuffer resizing in ReferenceMapper.signature" into ub-jackPiotr Jastrzebski2015-03-061-2/+11
|\ \ | |/ |/|
| * Avoid StringBuffer resizing in ReferenceMapper.signaturePiotr Jastrzebski2015-03-061-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While profiling I found out that ReferenceMapper.signature for both methods and fields makes 1,214,784 allocations for over 143MB of memory. Further investigation showed that big part of them was because of StringBuffer having to extend its capacity. We can prevent it by calculating the total number of characters in a resulting string and creating a StringBuffer with exactly that size. We can do it cheaply because '.signature()' methods in *Bindings are cached and each invocation after the first one is just returns already calculated char[]. This saves a lot of memory allocations. Before signature methods were making 1,214,784 allocations for over 143MB of memory. After this change they make only 784,567 allocations for 86MB of memory. This reduces the total amount of memory used during compilation (org.eclipse.jdt.internal.compiler.ProcessTaskManager.run) from 951MB to 893MB which is over 6%. Change-Id: I818dc62877369505a8698912aef49585df2b7779
* | Start using jack-api for jack API based test toolchainsJean-Marie Henaff2015-03-0631-412/+572
| | | | | | | | | | | | Implementation is still to be done. Change-Id: I010ab9f00f4c00275982d4abfcbf6c94248f3fb4
* | Merge "Add support of configurable standard input/output/error" into ub-jackJean-Philippe Lesot2015-03-0622-114/+310
|\ \ | |/ |/|
| * Add support of configurable standard input/output/errorJean-Philippe Lesot2015-03-0622-114/+310
| | | | | | | | | | | | | | | | | | | | Add API to set a dedicated standard input/output/error to a ConfigBuilder. By this way, if defined, the parsing of '-' and '--' take this standard definition instead of System.in/out/err. Add also support of standard error in AbstractStreamFile hierarchy and associated codec. Change-Id: I1ca9521743d3ba286bd115aa24dbafd74bf693e9
* | Fix the build of Jack API ImplJean-Philippe Lesot2015-03-061-5/+7
| | | | | | | | Change-Id: I56ea17452840e01673251329910cb6b8a97b0553
* | Merge "Work on Jack API 01" into ub-jackJean-Philippe Lesot2015-03-063-16/+17
|\ \
| * | Work on Jack API 01Jean-Philippe Lesot2015-03-053-16/+17
| |/ | | | | | | Change-Id: Ie1d25ee306679f3ff6769b267e2d5381e0c644c4
* | Add a forgotten cast during bridge creationmikaelpeltier2015-03-068-1/+156
| | | | | | | | | | | | | | - Jack should emit a cast on the returned type when it generate bridge. Bug: 19606409 Change-Id: I9e2c68d5e27e945d3a57055968b15e77af7e9b3c
* | Read some sections of dex in DexBuffer constructorPiotr Jastrzebski2015-03-061-61/+69
|/ | | | | | | | | | | | | | | | | | | I profiled the incremental compilation of Music app and it showed that we are reading and creating 1,330,524 strings from dex files in DexBuffers. I checked and the total of strings in all dex files represented by DexBuffers is 284979. That's around 20% of what we were reading. The conclusion was that we read the same strings over and over again. Then I looked at ConstantManager.addDexFile and it striked me that we need all strings, typeIds, typeNames, fieldIds and methodIds anyway because we iterate over them in addDexFile. This means that we can as well read all of them when DexBuffer is created. This way we save a lot of cpu and memory allocations. Strings alone were taking 70MB of heap. Now we're allocating only 20% of it. This change speeds up incremental compilation by over 12.5%. Change-Id: Iee18e9d17419886e552e3fd0b1143d2bb7220c9c
* Merge "Bump version to 1.1-a6" into ub-jackBenoit Lamarche2015-03-051-1/+1
|\
| * Bump version to 1.1-a6Benoit Lamarche2015-03-051-1/+1
| | | | | | | | Change-Id: I3390869f46f6df336d2f87a8043036fe7d6d3ff9
* | Merge "Add filtering according to ProblemLevel in reporters." into ub-jackBenoit Lamarche2015-03-054-22/+126
|\ \ | |/ |/|
| * Add filtering according to ProblemLevel in reporters.Benoit Lamarche2015-03-054-22/+126
| | | | | | | | | | Bug: 19613146 Change-Id: If553055aaefc983f74c723f97a2494666b4d004b