|
|
Refactor reifier to make it less dart_codegen specific.
This is some first steps towards hooking the reifier into the js backend. I've made the reifier operate on whole libraries instead of per compilation unit so that it can be hoisted out as a separate pass. I changed the API of the reifier to return a map from new type identifiers to information about their library of origin, so that the code generators can deal with these appropriately. Take a look, see what you think - suggestions as to how to structure this to interact well with the JS backend welcome.
BUG=
R=jmesserly@google.com, vsm@google.com
Committed: https://github.com/dart-lang/dev_compiler/commit/2a9727503c762a148e7ff0017175a50f29e76c28
Total comments: 11
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+297 lines, -300 lines) |
Patch |
 |
M |
lib/src/codegen/dart_codegen.dart
|
View
|
1
|
5 chunks |
+39 lines, -83 lines |
0 comments
|
Download
|
 |
M |
lib/src/codegen/reify_coercions.dart
|
View
|
1
|
9 chunks |
+71 lines, -33 lines |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/_internal/iterable.dart
|
View
|
|
7 chunks |
+15 lines, -16 lines |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/async/future_impl.dart
|
View
|
|
6 chunks |
+13 lines, -12 lines |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/async/schedule_microtask.dart
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/async/stream.dart
|
View
|
|
16 chunks |
+31 lines, -31 lines |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/async/stream_controller.dart
|
View
|
|
3 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/async/stream_impl.dart
|
View
|
|
4 chunks |
+11 lines, -12 lines |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/async/stream_pipe.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/async/stream_transformers.dart
|
View
|
|
3 chunks |
+16 lines, -17 lines |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/async/timer.dart
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/async/zone.dart
|
View
|
1
|
10 chunks |
+32 lines, -34 lines |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/c/c.dart
|
View
|
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/collection/splay_tree.dart
|
View
|
|
8 chunks |
+32 lines, -20 lines |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/convert/json.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/core/iterable.dart
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/core/stopwatch.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/core/uri.dart
|
View
|
|
9 chunks |
+14 lines, -14 lines |
0 comments
|
Download
|
 |
M |
test/dart_codegen/expect/d/d.dart
|
View
|
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
Total messages: 6 (1 generated)
|