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

Issue 2265473004: Introduce "CommonElements" (Closed)

Created:
4 years, 4 months ago by Siggi Cherem (dart-lang)
Modified:
4 years, 4 months ago
CC:
reviews_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Introduce "CommonElements" Moves common elements that the compiler refers to into a standalone class "CommonElements". Along the way I: - made computation of these elements lazy: it's only done when needed. This meant also changing some checks of the form `x == someCommonElement` into `isSomeCommonElement(x)` so that we don't forcefully resolve elements if we haven't seen them. - I tried also to remove elements that were only used to know whether something happened. Instead we model that directly with a boolean. Next steps after this: - move CommonElements under common/elements.dart - merge CoreClasses + CommonElements - introduce TargetElements: elements that the backend refers to that we need to know about during resolution/analysis. I expect most of it to be already in BackendHelpers. - get rid of onLibraryScanned/onLibrariesLoaded R=het@google.com Committed: https://github.com/dart-lang/sdk/commit/b16d5ca237338e64a33064d6127397ce026b7b2a

Patch Set 1 #

Total comments: 10

Patch Set 2 : cl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+472 lines, -367 lines) Patch
M pkg/compiler/lib/src/common/resolution.dart View 1 5 chunks +6 lines, -16 lines 0 comments Download
M pkg/compiler/lib/src/compile_time_constants.dart View 2 chunks +3 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/compiler.dart View 1 14 chunks +231 lines, -191 lines 0 comments Download
M pkg/compiler/lib/src/core_types.dart View 2 chunks +72 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/deferred_load.dart View 4 chunks +5 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/elements/elements.dart View 2 chunks +7 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/enqueue.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/inferrer/closure_tracer.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart View 1 chunk +4 lines, -3 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend.dart View 8 chunks +20 lines, -18 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend_helpers.dart View 3 chunks +5 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/backend_impact.dart View 4 chunks +6 lines, -6 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/js_emitter/full_emitter/setup_program_builder.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/mirrors_used.dart View 4 chunks +10 lines, -11 lines 0 comments Download
M pkg/compiler/lib/src/patch_parser.dart View 2 chunks +4 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/resolution/class_hierarchy.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/resolution/class_members.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/resolution/members.dart View 6 chunks +11 lines, -10 lines 0 comments Download
M pkg/compiler/lib/src/resolution/resolution.dart View 3 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 1 6 chunks +9 lines, -12 lines 0 comments Download
M tests/compiler/dart2js/compiler_helper.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/memory_compiler.dart View 2 chunks +0 lines, -8 lines 0 comments Download
M tests/compiler/dart2js/minimal_resolution_test.dart View 2 chunks +8 lines, -5 lines 0 comments Download
M tests/compiler/dart2js/patch_test.dart View 23 chunks +59 lines, -56 lines 0 comments Download
M tests/compiler/dart2js/type_combination_test.dart View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (6 generated)
Siggi Cherem (dart-lang)
4 years, 4 months ago (2016-08-22 15:50:48 UTC) #6
Harry Terkelsen
https://codereview.chromium.org/2265473004/diff/60001/pkg/compiler/lib/src/compiler.dart File pkg/compiler/lib/src/compiler.dart (right): https://codereview.chromium.org/2265473004/diff/60001/pkg/compiler/lib/src/compiler.dart#newcode362 pkg/compiler/lib/src/compiler.dart:362: _coreTypes.onLibraryCreated(library); seems like this is a place where LibraryLoader ...
4 years, 4 months ago (2016-08-22 19:36:20 UTC) #7
Siggi Cherem (dart-lang)
thanks harry! https://codereview.chromium.org/2265473004/diff/60001/pkg/compiler/lib/src/compiler.dart File pkg/compiler/lib/src/compiler.dart (right): https://codereview.chromium.org/2265473004/diff/60001/pkg/compiler/lib/src/compiler.dart#newcode362 pkg/compiler/lib/src/compiler.dart:362: _coreTypes.onLibraryCreated(library); On 2016/08/22 19:36:20, Harry Terkelsen wrote: ...
4 years, 4 months ago (2016-08-22 21:21:45 UTC) #8
Harry Terkelsen
lgtm
4 years, 4 months ago (2016-08-22 21:31:00 UTC) #9
Siggi Cherem (dart-lang)
4 years, 4 months ago (2016-08-22 21:53:32 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:80001) manually as
b16d5ca237338e64a33064d6127397ce026b7b2a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698