|
Merge the work on Generic Types Reification from 'dart-lang/reify' repo
This CL adds the work done at https://github.com/dart-lang/reify to SDK.
The commit that is used for the merge is
a2066a68374d49de92ff75f5e1ffc36335fd9451 (Nov 23, 2016). The code is
adjusted to respect the changes of the kernel package in SDK since that
commit.
The reify transformation is run by specifying 'vmreify' target to
'dartk'. The transformation requires its runtime library to present in
the program being transformed. The library is found in its default
location in SDK checkout if 'dartk' is run from its default location in
SDK checkout. To preserve the library in the output, TreeShaker is
disabled in 'vmreify' target.
The "golden" set of tests is also copied from 'dart-lang/reify'
repository, and the appropriate test suite is defined for it.
The bash script 'bin/reified_dart' from 'dart-lang/reify' is rewritten
as Dart script 'pkg/kernel/bin/reified_dart.dart'. It requires path to
'dartk' and path to SDK. Those are taken from their default locations in
SDK if 'reified_dart.dart' is run from its default location in SDK.
The added files were formatted using 'dartfmt' with default settings.
Additionally, the files were checked with 'dartanalyzer --strong'. The
necessary changes were made to fix the error messages. There are some
'hint' and 'error' messages left for some .dart files from the added
test cases, but they reflect intentional errors or conventions in those
files.
R=asgerf@google.com, karlklose@google.com
Committed: https://github.com/dart-lang/sdk/commit/d5e2fcb4304e993f8a1888dc9d0051124d16072c
Total comments: 16
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+6086 lines, -15 lines) |
Patch |
|
M |
pkg/kernel/bin/dartk.dart
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/bin/reified_dart.dart
|
View
|
1
2
|
1 chunk |
+173 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/target/targets.dart
|
View
|
1
2
3
|
3 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/target/vm.dart
|
View
|
|
2 chunks |
+12 lines, -7 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/lib/target/vmreify.dart
|
View
|
1
2
|
1 chunk |
+43 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/lib/transformations/generic_types_reification.dart
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/lib/transformations/reify/analysis/program_analysis.dart
|
View
|
|
1 chunk |
+106 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/lib/transformations/reify/asts.dart
|
View
|
|
1 chunk |
+54 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/lib/transformations/reify/reify_transformer.dart
|
View
|
1
|
1 chunk |
+114 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/lib/transformations/reify/transformation/binding.dart
|
View
|
|
1 chunk |
+180 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/lib/transformations/reify/transformation/builder.dart
|
View
|
|
1 chunk |
+511 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/lib/transformations/reify/transformation/remove_generics.dart
|
View
|
|
1 chunk |
+119 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/lib/transformations/reify/transformation/transformer.dart
|
View
|
|
1 chunk |
+575 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/runtime/reify/README.md
|
View
|
1
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/runtime/reify/declarations.dart
|
View
|
1
|
1 chunk |
+98 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/runtime/reify/interceptors.dart
|
View
|
1
|
1 chunk |
+73 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/runtime/reify/types.dart
|
View
|
1
|
1 chunk |
+678 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/test/closures/suite.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
pkg/kernel/test/reify/kernel_chain.dart
|
View
|
|
1 chunk |
+199 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/test/reify/reify.status
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
A + |
pkg/kernel/test/reify/suite.dart
|
View
|
1
|
7 chunks |
+34 lines, -6 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/test/reify/testing.json
|
View
|
|
1 chunk |
+29 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/closure2_test.dart
|
View
|
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/closure2_test.dart.expect
|
View
|
1
|
1 chunk |
+85 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/closure_test.dart
|
View
|
|
1 chunk |
+49 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/closure_test.dart.expect
|
View
|
1
|
1 chunk |
+162 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/factories_test.dart
|
View
|
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/factories_test.dart.expect
|
View
|
1
|
1 chunk |
+97 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/field_initializer2_test.dart
|
View
|
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/field_initializer2_test.dart.expect
|
View
|
1
|
1 chunk |
+67 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/field_initializer_test.dart
|
View
|
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/field_initializer_test.dart.expect
|
View
|
1
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/function_type_test.dart
|
View
|
|
1 chunk |
+266 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/function_type_test.dart.expect
|
View
|
1
|
1 chunk |
+223 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/is1_test.dart
|
View
|
|
1 chunk |
+27 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/is1_test.dart.expect
|
View
|
1
|
1 chunk |
+83 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/literals_test.dart
|
View
|
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/literals_test.dart.expect
|
View
|
1
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/multiple_variables_test.dart
|
View
|
1
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/multiple_variables_test.dart.expect
|
View
|
1
|
1 chunk |
+49 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/native_types_test.dart
|
View
|
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/native_types_test.dart.expect
|
View
|
1
|
1 chunk |
+453 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/reuse_type_variables_test.dart
|
View
|
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/reuse_type_variables_test.dart.expect
|
View
|
1
|
1 chunk |
+162 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/runtime_type_test.dart
|
View
|
|
1 chunk |
+22 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/runtime_type_test.dart.expect
|
View
|
1
|
1 chunk |
+66 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/simple_test.dart
|
View
|
|
1 chunk |
+69 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/simple_test.dart.expect
|
View
|
1
|
1 chunk |
+152 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/subclass_test.dart
|
View
|
|
1 chunk |
+35 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/subclass_test.dart.expect
|
View
|
1
|
1 chunk |
+119 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/super1_test.dart
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/super1_test.dart.expect
|
View
|
1
|
1 chunk |
+53 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/super2_test.dart
|
View
|
|
1 chunk |
+15 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/super2_test.dart.expect
|
View
|
1
|
1 chunk |
+57 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/super3_test.dart
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/super3_test.dart.expect
|
View
|
1
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/test_base.dart
|
View
|
|
1 chunk |
+40 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/typevariable1_test.dart
|
View
|
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/typevariable1_test.dart.expect
|
View
|
1
|
1 chunk |
+61 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/typevariable2_test.dart
|
View
|
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/typevariable2_test.dart.expect
|
View
|
1
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/typevariable3_test.dart
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/testcases/reify/typevariable3_test.dart.expect
|
View
|
1
|
1 chunk |
+47 lines, -0 lines |
0 comments
|
Download
|
Total messages: 8 (3 generated)
|