Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(27)

Issue 2985523002: Update experimental Java 8 support to use Desugar instead of Retrolambda (Closed)

Created:
3 years, 5 months ago by F
Modified:
3 years, 4 months ago
Reviewers:
Nico, agrieve
CC:
chromium-reviews, mikecase+watch_chromium.org, jbudorick+watch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Update experimental Java 8 support to use Desugar instead of Retrolambda Our experiments show that Desugar, a Google-developed open-source tool, outperforms Retrolambda in both APK sizes and Java method counts. This CL replaces Retrolambda with Desugar in our experimental Java 8 support. BUG=730711 Review-Url: https://codereview.chromium.org/2985523002 Cr-Commit-Position: refs/heads/master@{#491183} Committed: https://chromium.googlesource.com/chromium/src/+/1a159a003ca82e0b0bd653078dbde80757bf9e2c

Patch Set 1 : Desugar :) #

Total comments: 6

Patch Set 2 : addressing comments #

Total comments: 6

Patch Set 3 : Addressing comments #

Patch Set 4 : Further removing retrolambda #

Patch Set 5 : Fix gn #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -334 lines) Patch
M DEPS View 1 2 3 4 5 1 chunk +0 lines, -10 lines 0 comments Download
A build/android/gyp/desugar.py View 1 2 1 chunk +76 lines, -0 lines 0 comments Download
M build/android/gyp/retrolambda.py View 1 2 1 chunk +0 lines, -68 lines 0 comments Download
M build/config/android/config.gni View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M build/config/android/internal_rules.gni View 1 2 3 4 5 5 chunks +36 lines, -20 lines 0 comments Download
M third_party/.gitignore View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
D third_party/retrolambda/LICENSE View 1 2 3 1 chunk +0 lines, -202 lines 0 comments Download
D third_party/retrolambda/OWNERS View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
D third_party/retrolambda/README.chromium View 1 2 3 1 chunk +0 lines, -26 lines 0 comments Download
D third_party/retrolambda/retrolambda-2.5.1.jar.sha1 View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 53 (38 generated)
F
Hi Andrew, PTAL. Thanks!
3 years, 5 months ago (2017-07-19 20:28:38 UTC) #4
agrieve
https://codereview.chromium.org/2985523002/diff/40001/build/android/gyp/desugar.py File build/android/gyp/desugar.py (right): https://codereview.chromium.org/2985523002/diff/40001/build/android/gyp/desugar.py#newcode36 build/android/gyp/desugar.py:36: for path in sorted(classpath) + [android_sdk_jar]: shouldn't sort the ...
3 years, 5 months ago (2017-07-20 00:26:52 UTC) #5
F
Thanks Andrew! PTAL https://codereview.chromium.org/2985523002/diff/40001/build/android/gyp/desugar.py File build/android/gyp/desugar.py (right): https://codereview.chromium.org/2985523002/diff/40001/build/android/gyp/desugar.py#newcode36 build/android/gyp/desugar.py:36: for path in sorted(classpath) + [android_sdk_jar]: ...
3 years, 5 months ago (2017-07-20 17:30:56 UTC) #7
agrieve
https://codereview.chromium.org/2985523002/diff/80001/build/android/gyp/desugar.py File build/android/gyp/desugar.py (right): https://codereview.chromium.org/2985523002/diff/80001/build/android/gyp/desugar.py#newcode18 build/android/gyp/desugar.py:18: _DESUGAR_JAR_PATH = os.path.normpath(os.path.join( list this either in depfile_deps or ...
3 years, 5 months ago (2017-07-20 18:24:09 UTC) #8
F
Thanks Andrew! PTAL https://codereview.chromium.org/2985523002/diff/80001/build/android/gyp/desugar.py File build/android/gyp/desugar.py (right): https://codereview.chromium.org/2985523002/diff/80001/build/android/gyp/desugar.py#newcode18 build/android/gyp/desugar.py:18: _DESUGAR_JAR_PATH = os.path.normpath(os.path.join( On 2017/07/20 18:24:09, ...
3 years, 5 months ago (2017-07-20 19:40:55 UTC) #11
agrieve
On 2017/07/20 19:40:55, F wrote: > Thanks Andrew! PTAL > > https://codereview.chromium.org/2985523002/diff/80001/build/android/gyp/desugar.py > File build/android/gyp/desugar.py ...
3 years, 5 months ago (2017-07-20 20:08:03 UTC) #12
F
Hi Andrew, PTAL. Thanks! Now this CL completely removes retrolambda
3 years, 4 months ago (2017-07-28 19:19:16 UTC) #13
agrieve
On 2017/07/28 19:19:16, F wrote: > Hi Andrew, PTAL. Thanks! > > Now this CL ...
3 years, 4 months ago (2017-07-28 19:38:31 UTC) #18
agrieve
Or move the variable outside https://codereview.chromium.org/2985523002/diff/210001/build/config/android/internal_rules.gni File build/config/android/internal_rules.gni (right): https://codereview.chromium.org/2985523002/diff/210001/build/config/android/internal_rules.gni#newcode1263 build/config/android/internal_rules.gni:1263: if (defined(invoker.alternative_android_sdk_ijar)) { assert(!defined(invoker.alternative_android_sdk_ijar) ...
3 years, 4 months ago (2017-07-28 20:25:52 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2985523002/250001
3 years, 4 months ago (2017-07-29 15:12:45 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/503699)
3 years, 4 months ago (2017-07-29 15:22:14 UTC) #36
F
+thakis@ for third_party Hi Nico, PTAL. Thanks!
3 years, 4 months ago (2017-08-01 17:45:48 UTC) #40
Nico
lgtm
3 years, 4 months ago (2017-08-01 18:13:34 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2985523002/250001
3 years, 4 months ago (2017-08-01 20:34:49 UTC) #48
commit-bot: I haz the power
3 years, 4 months ago (2017-08-02 01:43:05 UTC) #53
Message was sent while issue was closed.
Committed patchset #6 (id:250001) as
https://chromium.googlesource.com/chromium/src/+/1a159a003ca82e0b0bd653078dbd...

Powered by Google App Engine
This is Rietveld 408576698