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

Issue 2846433003: Run closed_world2_test using the normal compiler pipeline. (Closed)

Created:
3 years, 8 months ago by Johnni Winther
Modified:
3 years, 7 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Run closed_world2_test using the normal compiler pipeline. This is a step towards running the front end of the compiler from '.dill' files. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/a4960a150758144930dd87e0716b372948f5ac21

Patch Set 1 #

Total comments: 7

Patch Set 2 : Updated cf. comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+409 lines, -307 lines) Patch
M pkg/compiler/lib/src/compiler.dart View 1 22 chunks +34 lines, -99 lines 0 comments Download
M pkg/compiler/lib/src/deferred_load.dart View 1 4 chunks +7 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/enqueue.dart View 5 chunks +15 lines, -10 lines 0 comments Download
M pkg/compiler/lib/src/frontend_strategy.dart View 3 chunks +7 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/js_backend/annotations.dart View 2 chunks +11 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 11 chunks +38 lines, -35 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/enqueuer.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/kernel/element_map.dart View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/kernel/kernel_strategy.dart View 2 chunks +8 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/kernel/native_basic_data.dart View 1 1 chunk +1 line, -2 lines 0 comments Download
M pkg/compiler/lib/src/library_loader.dart View 2 chunks +15 lines, -13 lines 0 comments Download
M pkg/compiler/lib/src/mirrors_used.dart View 2 chunks +2 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/native/native.dart View 2 chunks +4 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/resolution/resolution_strategy.dart View 4 chunks +80 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/types/types.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/compiler/tool/perf.dart View 2 chunks +5 lines, -3 lines 0 comments Download
M tests/compiler/dart2js/assert_message_throw_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/compiler/dart2js/compiler_helper.dart View 7 chunks +10 lines, -9 lines 0 comments Download
M tests/compiler/dart2js/compiler_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/compiler/dart2js/deferred_dont_inline_deferred_constants_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/compiler/dart2js/dill_loader_test.dart View 2 chunks +3 lines, -3 lines 0 comments Download
M tests/compiler/dart2js/expect_annotations_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/compiler/dart2js/inference/inference_test_helper.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/compiler/dart2js/kernel/closed_world2_test.dart View 5 chunks +40 lines, -48 lines 0 comments Download
M tests/compiler/dart2js/kernel/constructors_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/compiler/dart2js/kernel/helper.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/mock_compiler.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/override_inheritance_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/compiler/dart2js/related_types_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/compiler/dart2js/resolver_test.dart View 28 chunks +67 lines, -40 lines 0 comments Download
M tests/compiler/dart2js/source_map_name_test.dart View 1 chunk +3 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/type_checker_test.dart View 9 chunks +18 lines, -9 lines 0 comments Download
M tests/compiler/dart2js/type_combination_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/compiler/dart2js/type_test_helper.dart View 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Johnni Winther
https://codereview.chromium.org/2846433003/diff/1/pkg/compiler/lib/src/compiler.dart File pkg/compiler/lib/src/compiler.dart (right): https://codereview.chromium.org/2846433003/diff/1/pkg/compiler/lib/src/compiler.dart#newcode567 pkg/compiler/lib/src/compiler.dart:567: if (mainFunction == null) return; This occurs when mainFunction ...
3 years, 8 months ago (2017-04-26 12:21:43 UTC) #2
Siggi Cherem (dart-lang)
lgtm with a couple small comments https://codereview.chromium.org/2846433003/diff/1/pkg/compiler/lib/src/compiler.dart File pkg/compiler/lib/src/compiler.dart (right): https://codereview.chromium.org/2846433003/diff/1/pkg/compiler/lib/src/compiler.dart#newcode700 pkg/compiler/lib/src/compiler.dart:700: if (commonElements.mirrorsLibrary == ...
3 years, 8 months ago (2017-04-26 16:39:18 UTC) #3
Johnni Winther
https://codereview.chromium.org/2846433003/diff/1/pkg/compiler/lib/src/compiler.dart File pkg/compiler/lib/src/compiler.dart (right): https://codereview.chromium.org/2846433003/diff/1/pkg/compiler/lib/src/compiler.dart#newcode700 pkg/compiler/lib/src/compiler.dart:700: if (commonElements.mirrorsLibrary == null) return; On 2017/04/26 16:39:18, Siggi ...
3 years, 7 months ago (2017-04-27 06:50:14 UTC) #4
Johnni Winther
Committed patchset #2 (id:20001) manually as a4960a150758144930dd87e0716b372948f5ac21 (presubmit successful).
3 years, 7 months ago (2017-04-27 06:55:45 UTC) #6
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2846433003/diff/1/pkg/compiler/lib/src/compiler.dart File pkg/compiler/lib/src/compiler.dart (right): https://codereview.chromium.org/2846433003/diff/1/pkg/compiler/lib/src/compiler.dart#newcode700 pkg/compiler/lib/src/compiler.dart:700: if (commonElements.mirrorsLibrary == null) return; On 2017/04/27 06:50:14, Johnni ...
3 years, 7 months ago (2017-04-27 21:11:52 UTC) #7
Johnni Winther
3 years, 7 months ago (2017-04-28 08:07:35 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/2846433003/diff/1/pkg/compiler/lib/src/compil...
File pkg/compiler/lib/src/compiler.dart (right):

https://codereview.chromium.org/2846433003/diff/1/pkg/compiler/lib/src/compil...
pkg/compiler/lib/src/compiler.dart:700: if (commonElements.mirrorsLibrary ==
null) return;
On 2017/04/27 21:11:52, Siggi Cherem (dart-lang) wrote:
> On 2017/04/27 06:50:14, Johnni Winther wrote:
> > On 2017/04/26 16:39:18, Siggi Cherem (dart-lang) wrote:
> > > mmm... is this only used to resolve metadata that is read via mirrors?
> > > 
> > > I thought we needed this also to validate some of the metadata that we use
> for
> > > other features, like js-interop. For example, to do the validation with an
> > > annotation processor of a @JS annotation on a library.
> > 
> > _ElementAnnotationProcessor.extractJsInteropAnnotations ensures this.
> 
> In that case, maybe change where we call this to only call it for mirrors, so
we
> can switch this into an assertion instead?

Done in https://codereview.chromium.org/2850503005

Powered by Google App Engine
This is Rietveld 408576698