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

Issue 2832353002: Add support for building patched_sdk and platform.dill for dart2js: (Closed)

Created:
3 years, 8 months ago by Siggi Cherem (dart-lang)
Modified:
3 years, 7 months ago
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com, Vyacheslav Egorov (Google)
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add support for building patched_sdk and platform.dill for dart2js: - defines a .gn target for patched_dart2js_sdk - changes patch_sdk.dart to handle a dart2js target - adds support in fasta to understand the `native` clause still used by dart2js - add option to fasta to know whether it is generating kernel for the vm or dart2js I'm not excited about how I added the target distinction in fasta, the reason I did so is that it affects the behavior in several ways: in how we handle `native`, in the libraries that are included by default in the platform.dill file, and in the transformations that need to be done. I'm happy to change the approach. BUG= R=ahe@google.com, vegorov@google.com, zra@google.com Committed: https://github.com/dart-lang/sdk/commit/714523b103598d49295fa06b4ad13c6917c50399 Committed: https://github.com/dart-lang/sdk/commit/de36d118175ddf8de915a47b9b13d7c64d1c39c8

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 22

Patch Set 3 : review comments #

Total comments: 2

Patch Set 4 : fix .gn circularity by removing use of rebase_path #

Unified diffs Side-by-side diffs Delta from patch set Stats (+506 lines, -198 lines) Patch
A pkg/compiler/lib/src/kernel/fasta_support.dart View 1 2 1 chunk +148 lines, -0 lines 0 comments Download
A pkg/compiler/tool/generate_kernel.dart View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/fasta.dart View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_target.dart View 1 2 3 chunks +17 lines, -5 lines 0 comments Download
M pkg/front_end/lib/src/fasta/parser/dart_vm_native.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/source/diet_listener.dart View 1 2 3 chunks +3 lines, -12 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/directive_listener.dart View 1 2 4 chunks +7 lines, -7 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/outline_builder.dart View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
M pkg/front_end/lib/src/fasta/target_implementation.dart View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/translate_uri.dart View 1 2 2 chunks +29 lines, -8 lines 0 comments Download
M pkg/front_end/tool/_fasta/generate_dart_libraries.dart View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M pkg/front_end/tool/fasta_perf.dart View 1 2 3 3 chunks +9 lines, -2 lines 0 comments Download
M runtime/vm/BUILD.gn View 1 2 3 chunks +7 lines, -42 lines 0 comments Download
M tools/patch_sdk.dart View 1 2 4 chunks +147 lines, -110 lines 0 comments Download
M utils/compiler/BUILD.gn View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
A utils/generate_patch_sdk.gni View 1 2 3 1 chunk +71 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (14 generated)
Siggi Cherem (dart-lang)
3 years, 8 months ago (2017-04-21 23:53:54 UTC) #5
Siggi Cherem (dart-lang)
friendly ping Also - I have a few ideas for some improvements on what is ...
3 years, 8 months ago (2017-04-26 16:56:35 UTC) #6
ahe
Two initial comments. https://codereview.chromium.org/2832353002/diff/80001/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart File pkg/front_end/lib/src/fasta/kernel/kernel_target.dart (right): https://codereview.chromium.org/2832353002/diff/80001/pkg/front_end/lib/src/fasta/kernel/kernel_target.dart#newcode94 pkg/front_end/lib/src/fasta/kernel/kernel_target.dart:94: class KernelTarget extends TargetImplementation { Would ...
3 years, 7 months ago (2017-04-27 11:48:31 UTC) #7
ahe
Slava: could you help us by reviewing tools/patch_sdk.dart and utils/compiler/BUILD.gn? I'm not strong in GN. ...
3 years, 7 months ago (2017-04-27 13:34:35 UTC) #8
Vyacheslav Egorov (Google)
patch_sdk.dart & BUILD.gn LGTM https://codereview.chromium.org/2832353002/diff/80001/tools/patch_sdk.dart File tools/patch_sdk.dart (right): https://codereview.chromium.org/2832353002/diff/80001/tools/patch_sdk.dart#newcode55 tools/patch_sdk.dart:55: void usage(String mode) { mode ...
3 years, 7 months ago (2017-04-27 14:07:23 UTC) #10
Siggi Cherem (dart-lang)
Thanks for all the comments. PTAL. With your suggestion, this is much better: - fasta ...
3 years, 7 months ago (2017-04-28 21:37:21 UTC) #16
ahe
Please wait for Slava regarding patch_sdk.dart and the GN changes. Everything else, LGTM!
3 years, 7 months ago (2017-05-01 12:52:29 UTC) #17
Vyacheslav Egorov (Google)
lgtm
3 years, 7 months ago (2017-05-01 13:50:45 UTC) #18
Siggi Cherem (dart-lang)
Committed patchset #3 (id:200001) manually as 714523b103598d49295fa06b4ad13c6917c50399 (presubmit successful).
3 years, 7 months ago (2017-05-01 17:11:49 UTC) #20
zra
https://codereview.chromium.org/2832353002/diff/200001/utils/generate_patch_sdk.gni File utils/generate_patch_sdk.gni (right): https://codereview.chromium.org/2832353002/diff/200001/utils/generate_patch_sdk.gni#newcode32 utils/generate_patch_sdk.gni:32: deps += ["$_dart_root/runtime/bin:dart_bootstrap($host_toolchain)"] Unfortunately, GN appears to treat a ...
3 years, 7 months ago (2017-05-01 20:29:42 UTC) #22
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2832353002/diff/200001/utils/generate_patch_sdk.gni File utils/generate_patch_sdk.gni (right): https://codereview.chromium.org/2832353002/diff/200001/utils/generate_patch_sdk.gni#newcode32 utils/generate_patch_sdk.gni:32: deps += ["$_dart_root/runtime/bin:dart_bootstrap($host_toolchain)"] On 2017/05/01 20:29:42, zra wrote: > ...
3 years, 7 months ago (2017-05-01 20:53:41 UTC) #24
zra
lgtm I've patched this in on Windows and into the Fuchsia build, and the build ...
3 years, 7 months ago (2017-05-01 21:58:13 UTC) #25
Siggi Cherem (dart-lang)
Committed patchset #4 (id:240001) manually as de36d118175ddf8de915a47b9b13d7c64d1c39c8 (presubmit successful).
3 years, 7 months ago (2017-05-02 00:23:11 UTC) #27
Siggi Cherem (dart-lang)
On 2017/05/01 21:58:13, zra wrote: > lgtm > > I've patched this in on Windows ...
3 years, 7 months ago (2017-05-02 00:27:53 UTC) #28
ahe
3 years, 7 months ago (2017-05-02 06:35:53 UTC) #29
Message was sent while issue was closed.
On 2017/05/02 00:27:53, Siggi Cherem (dart-lang) wrote:
> On 2017/05/01 21:58:13, zra wrote:
> > lgtm
> > 
> > I've patched this in on Windows and into the Fuchsia build,
> > and the build no longer fails.
> 
> awesome, thanks for checking!

Thank you for helping out, Zach!

Powered by Google App Engine
This is Rietveld 408576698