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 3008793002: Use the entity model for dump_info. (Closed)

Created:
3 years, 3 months ago by Harry Terkelsen
Modified:
3 years, 3 months ago
CC:
reviews_dartlang.org, rmacnak
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Use the entity model for dump_info. This changes dump_info to use the entity model and the visit methods in ElementEnvironment. This way, once the Kernel implementation of ElementEnvironment is fully implemented, dump_info should *just work* with the common front end. R=johnniwinther@google.com, sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/b3ce4a88e651c5bf4bfe67d0a8d6eec2b3b0e0a8

Patch Set 1 #

Total comments: 9

Patch Set 2 : respond to comments #

Total comments: 2

Patch Set 3 : use codegen enqueuer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -311 lines) Patch
M pkg/compiler/lib/src/closure.dart View 1 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/common_elements.dart View 1 3 chunks +14 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/deferred_load.dart View 5 chunks +8 lines, -8 lines 0 comments Download
M pkg/compiler/lib/src/dump_info.dart View 1 2 17 chunks +237 lines, -222 lines 0 comments Download
M pkg/compiler/lib/src/elements/elements.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/elements/modelx.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/mirrors_data.dart View 1 1 chunk +1 line, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart View 1 8 chunks +9 lines, -9 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/full_emitter/container_builder.dart View 3 chunks +4 lines, -4 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/js_emitter/startup_emitter/fragment_emitter.dart View 4 chunks +7 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/kernel/element_map_impl.dart View 1 3 chunks +14 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/resolution/resolution_strategy.dart View 1 5 chunks +22 lines, -7 lines 0 comments Download
M pkg/compiler/lib/src/serialization/modelz.dart View 2 chunks +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/universe/codegen_world_builder.dart View 4 chunks +25 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/universe/use.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/deferred_custom_element_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/compiler/dart2js/deferred_dont_inline_deferred_constants_test.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M tests/compiler/dart2js/deferred_dont_inline_deferred_globals_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/deferred_follow_implicit_super_regression_test.dart View 1 chunk +4 lines, -4 lines 0 comments Download
M tests/compiler/dart2js/deferred_inline_restrictions_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/compiler/dart2js/deferred_load_graph_segmentation2_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/compiler/dart2js/deferred_load_graph_segmentation_test.dart View 2 chunks +9 lines, -9 lines 0 comments Download
M tests/compiler/dart2js/deferred_mirrors_test.dart View 5 chunks +10 lines, -10 lines 0 comments Download
M tests/compiler/dart2js/deferred_not_in_main_test.dart View 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Harry Terkelsen
3 years, 3 months ago (2017-08-29 18:29:58 UTC) #2
Johnni Winther
lgtm https://codereview.chromium.org/3008793002/diff/1/pkg/compiler/lib/src/dump_info.dart File pkg/compiler/lib/src/dump_info.dart (right): https://codereview.chromium.org/3008793002/diff/1/pkg/compiler/lib/src/dump_info.dart#newcode59 pkg/compiler/lib/src/dump_info.dart:59: compiler.libraryLoader.libraries.forEach(visitLibrary); Change this to elementEnvironment.libraries.forEach(visitLibrary); otherwise we'll mix ...
3 years, 3 months ago (2017-08-30 13:52:35 UTC) #3
Siggi Cherem (dart-lang)
https://codereview.chromium.org/3008793002/diff/1/pkg/compiler/lib/src/common_elements.dart File pkg/compiler/lib/src/common_elements.dart (right): https://codereview.chromium.org/3008793002/diff/1/pkg/compiler/lib/src/common_elements.dart#newcode1261 pkg/compiler/lib/src/common_elements.dart:1261: {bool ensureResolved: true}); since we don't really have "resolution" ...
3 years, 3 months ago (2017-08-30 17:30:43 UTC) #4
Harry Terkelsen
https://codereview.chromium.org/3008793002/diff/1/pkg/compiler/lib/src/common_elements.dart File pkg/compiler/lib/src/common_elements.dart (right): https://codereview.chromium.org/3008793002/diff/1/pkg/compiler/lib/src/common_elements.dart#newcode1261 pkg/compiler/lib/src/common_elements.dart:1261: {bool ensureResolved: true}); On 2017/08/30 17:30:42, Siggi Cherem (dart-lang) ...
3 years, 3 months ago (2017-08-30 21:28:50 UTC) #5
Siggi Cherem (dart-lang)
lgtm I'm sure Johnni has a better suggestion for what to do about resolution below. ...
3 years, 3 months ago (2017-08-30 21:51:49 UTC) #6
Harry Terkelsen
https://codereview.chromium.org/3008793002/diff/20001/pkg/compiler/lib/src/dump_info.dart File pkg/compiler/lib/src/dump_info.dart (right): https://codereview.chromium.org/3008793002/diff/20001/pkg/compiler/lib/src/dump_info.dart#newcode379 pkg/compiler/lib/src/dump_info.dart:379: return compiler.enqueuer.resolution.processedEntities.contains(entity); On 2017/08/30 21:51:48, Siggi Cherem (dart-lang) wrote: ...
3 years, 3 months ago (2017-08-30 22:14:46 UTC) #7
Harry Terkelsen
3 years, 3 months ago (2017-08-30 22:26:17 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
b3ce4a88e651c5bf4bfe67d0a8d6eec2b3b0e0a8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698