|
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
Total comments: 10
|
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
|
Total messages: 11 (6 generated)
|