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

Issue 2989453002: Add support for compiling Dart via the FE in dart2js. (Closed)

Created:
3 years, 5 months ago by Siggi Cherem (dart-lang)
Modified:
3 years, 4 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add support for compiling Dart via the FE in dart2js. This also: - replaces --use-kernel with --use-kernel-in-ssa - replaces --load-dill with --use-kernel - makes --use-kernel support both: compiling from .dill or from .dart - change the default of other options that are currently disabled when --use-kernel is on. - adds .status lines for all tests in language/corelib/dart2js_extra/dart2js_native R=efortuna@google.com Note: this CL is built on top of another change (https://codereview.chromium.org/2981403002/) that adds preview_dart_2 to test.dart Committed: https://github.com/dart-lang/sdk/commit/09ff1b56f79ba855a5ef7149be2f7bc6536154ec

Patch Set 1 #

Total comments: 8

Patch Set 2 : rename the flags #

Patch Set 3 : update status #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+2946 lines, -170 lines) Patch
M pkg/compiler/lib/src/apiimpl.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/commandline_options.dart View 1 2 chunks +11 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/compiler.dart View 1 8 chunks +13 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/dart2js.dart View 1 5 chunks +8 lines, -8 lines 0 comments Download
M pkg/compiler/lib/src/deferred_load.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/frontend_strategy.dart View 2 chunks +2 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/backend_impact.dart View 1 3 chunks +4 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/element_strategy.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/resolution_listener.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/kernel/dart2js_target.dart View 1 chunk +1 line, -1 line 0 comments Download
A pkg/compiler/lib/src/kernel/front_end_adapter.dart View 1 chunk +100 lines, -0 lines 2 comments Download
M pkg/compiler/lib/src/kernel/kernel_strategy.dart View 3 chunks +4 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/library_loader.dart View 7 chunks +52 lines, -27 lines 0 comments Download
M pkg/compiler/lib/src/options.dart View 1 9 chunks +24 lines, -13 lines 0 comments Download
M pkg/compiler/lib/src/resolution/resolution_strategy.dart View 2 chunks +2 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/ssa/ssa.dart View 1 1 chunk +2 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/type_builder.dart View 1 1 chunk +1 line, -2 lines 0 comments Download
M pkg/compiler/tool/perf.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/analyze_dart2js_test.dart View 1 chunk +14 lines, -1 line 0 comments Download
M tests/compiler/dart2js/analyze_unused_dart2js_test.dart View 1 1 chunk +38 lines, -28 lines 0 comments Download
M tests/compiler/dart2js/dill_loader_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/kernel/class_hierarchy_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/kernel/closed_world_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/kernel/compiler_helper.dart View 1 7 chunks +18 lines, -14 lines 0 comments Download
M tests/compiler/dart2js/kernel/helper.dart View 1 2 chunks +4 lines, -4 lines 0 comments Download
M tests/compiler/dart2js/kernel/impact_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/kernel/run_from_dill_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/kernel/visitor_test.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/mock_compiler.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/compiler/dart2js_extra/dart2js_extra.status View 1 2 2 chunks +201 lines, -2 lines 0 comments Download
M tests/compiler/dart2js_native/dart2js_native.status View 1 2 3 chunks +130 lines, -11 lines 0 comments Download
M tests/corelib/corelib.status View 1 2 4 chunks +249 lines, -4 lines 0 comments Download
M tests/corelib_2/corelib_2.status View 1 2 4 chunks +96 lines, -3 lines 0 comments Download
M tests/language/language_dart2js.status View 1 2 15 chunks +1945 lines, -21 lines 0 comments Download
M tests/language_2/language_2.status View 1 2 2 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
Siggi Cherem (dart-lang)
FYI - no need for all 3 of you to review, just whoever gets to ...
3 years, 5 months ago (2017-07-21 19:21:32 UTC) #6
Emily Fortuna
lgtm https://codereview.chromium.org/2989453002/diff/60001/pkg/compiler/lib/src/kernel/dart2js_target.dart File pkg/compiler/lib/src/kernel/dart2js_target.dart (right): https://codereview.chromium.org/2989453002/diff/60001/pkg/compiler/lib/src/kernel/dart2js_target.dart#newcode12 pkg/compiler/lib/src/kernel/dart2js_target.dart:12: import '../native/native.dart' show maybeEnableNative; On 2017/07/21 19:21:31, Siggi ...
3 years, 5 months ago (2017-07-21 21:50:51 UTC) #7
Siggi Cherem (dart-lang)
Thanks Emily! After talking with Bob, we decided to not use '--preview-dart-2', but a dart2js-specific ...
3 years, 5 months ago (2017-07-22 00:04:04 UTC) #9
Siggi Cherem (dart-lang)
Committed patchset #3 (id:140001) manually as 09ff1b56f79ba855a5ef7149be2f7bc6536154ec (presubmit successful).
3 years, 5 months ago (2017-07-25 00:10:21 UTC) #13
Johnni Winther
https://codereview.chromium.org/2989453002/diff/140001/pkg/compiler/lib/src/kernel/front_end_adapter.dart File pkg/compiler/lib/src/kernel/front_end_adapter.dart (right): https://codereview.chromium.org/2989453002/diff/140001/pkg/compiler/lib/src/kernel/front_end_adapter.dart#newcode85 pkg/compiler/lib/src/kernel/front_end_adapter.dart:85: case fe.Severity.internalProblem: I think `internalProblem` should map to a ...
3 years, 4 months ago (2017-07-28 12:26:42 UTC) #14
Siggi Cherem (dart-lang)
3 years, 4 months ago (2017-07-28 19:15:51 UTC) #15
Message was sent while issue was closed.
https://codereview.chromium.org/2989453002/diff/140001/pkg/compiler/lib/src/k...
File pkg/compiler/lib/src/kernel/front_end_adapter.dart (right):

https://codereview.chromium.org/2989453002/diff/140001/pkg/compiler/lib/src/k...
pkg/compiler/lib/src/kernel/front_end_adapter.dart:85: case
fe.Severity.internalProblem:
On 2017/07/28 12:26:42, Johnni Winther wrote:
> I think `internalProblem` should map to a crash (which doesn't have a
> corresponding report method on [DiagnosticReporter].

good point, I guess I can make it throw here, I'll send you a fix shortly.

Powered by Google App Engine
This is Rietveld 408576698