|
Tweak public APIs and use them in patch_sdk, dart2js, and kernel-service.
This CL tweaks the public APIs in package:front_end, and
starts using those APIs outside the package. For example, this
removes 9 uses of DillTarget, so it is not longer mentioned
outside pkg/front_end and the analyzer_target.
Actual changes:
- in package:front_end
* added kernel_generator_impl: new file contains code that
used to be in kernel_generator. Code has some modifications:
it uses a single canonical-root when loading summaries, and
it supports generating both outlines and kernel in one go.
* removed code that didn't belong here:
a. most of calculating deps for .GN moved to patch_sdk
b. vm-specific outcomes moved to kernel-service
* updated how `native` is implemented, so we can more easily
support dart2js and ddc
* updated how we check where `int`, `bool`, etc can be implemented.
* added support "hermetic mode" in modular builds
('chaseDependencies = false' option)
* moved `trim` step out of fasta, and for now call it only within
the public API. This is not yet exposed, and I stopped covering it in
most tests (now only covered in shaker tests). The plan is to add
tests for the public API covering this in the future.
* removed `uriToSource` when serializing outlines
* added unit tests for public APIs
- patch_sdk
* use the public API to craete platform.dill, outline.dill (now
500K insted of 3Mb because it excludes sources), and vmservice_io.dill
* moved here logic internal to .GN
- kernel service
* use the public API
* moved here logic that depends on VM internals (e.g. status enum,
compilation results)
- package:compiler
* use the public API in tools and unit tests
* simplified patched-sdk generation: no more extending fasta's internals
- package:kernel
* fix bug in deserialization: initializers and other lists were
overwritten accidentally with external definitions.
* updated unit tests, moved shared logic to frontend/src/fasta/testing
R=johnniwinther@google.com, paulberry@google.com
Committed: https://github.com/dart-lang/sdk/commit/610d0819477c5bb0ede1d9f219c50e91e5994afa
Total comments: 157
Total comments: 4
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1975 lines, -1301 lines) |
Patch |
|
A |
pkg/compiler/lib/src/kernel/dart2js_target.dart
|
View
|
1
2
3
|
1 chunk |
+92 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/compiler/lib/src/kernel/fasta_support.dart
|
View
|
|
1 chunk |
+0 lines, -201 lines |
0 comments
|
Download
|
|
M |
pkg/compiler/tool/generate_kernel.dart
|
View
|
1
2
3
|
1 chunk |
+45 lines, -24 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/example/incremental_reload/compiler_with_invalidation.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/compiler_options.dart
|
View
|
1
2
3
|
4 chunks |
+103 lines, -56 lines |
0 comments
|
Download
|
|
A |
pkg/front_end/lib/front_end.dart
|
View
|
1
2
3
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/kernel_generator.dart
|
View
|
1
2
3
|
3 chunks |
+32 lines, -135 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/base/processed_options.dart
|
View
|
1
2
3
|
8 chunks |
+208 lines, -42 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/builder/library_builder.dart
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/compile_platform.dart
|
View
|
1
2
3
|
2 chunks |
+27 lines, -34 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/fasta.dart
|
View
|
|
5 chunks |
+8 lines, -79 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/kernel/body_builder.dart
|
View
|
1
2
3
|
4 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/kernel/kernel_outline_shaker.dart
|
View
|
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
|
View
|
|
6 chunks |
+5 lines, -86 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/kernel/utils.dart
|
View
|
1
2
3
|
2 chunks |
+24 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/loader.dart
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/parser/dart_vm_native.dart
|
View
|
1
2
3
|
1 chunk |
+0 lines, -56 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/parser/listener.dart
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
pkg/front_end/lib/src/fasta/parser/native_support.dart
|
View
|
1
2
3
|
1 chunk |
+86 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/parser/parser.dart
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/source/diet_listener.dart
|
View
|
1
2
3
|
5 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/source/outline_builder.dart
|
View
|
1
2
3
|
5 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/source/source_loader.dart
|
View
|
|
2 chunks |
+1 line, -9 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/target_implementation.dart
|
View
|
|
2 chunks |
+0 lines, -25 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/testing/kernel_chain.dart
|
View
|
|
2 chunks |
+39 lines, -1 line |
0 comments
|
Download
|
|
D |
pkg/front_end/lib/src/fasta/vm.dart
|
View
|
|
1 chunk |
+0 lines, -165 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
|
View
|
|
4 chunks |
+3 lines, -19 lines |
0 comments
|
Download
|
|
A |
pkg/front_end/lib/src/kernel_generator_impl.dart
|
View
|
1
2
3
|
1 chunk |
+171 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/simple_error.dart
|
View
|
1
2
3
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
|
A |
pkg/front_end/lib/src/testing/compiler_common.dart
|
View
|
1
2
3
4
|
1 chunk |
+123 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/summary_generator.dart
|
View
|
1
|
2 chunks |
+18 lines, -7 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/fasta/shaker_test.dart
|
View
|
|
5 chunks |
+12 lines, -30 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/fasta/testing/suite.dart
|
View
|
|
3 chunks |
+6 lines, -9 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/incremental_kernel_generator_test.dart
|
View
|
|
2 chunks |
+3 lines, -6 lines |
0 comments
|
Download
|
|
A |
pkg/front_end/test/kernel_generator_test.dart
|
View
|
|
1 chunk |
+210 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/src/base/processed_options_test.dart
|
View
|
|
4 chunks |
+111 lines, -2 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/src/incremental/hot_reload_e2e_test.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
pkg/front_end/test/subpackage_relationships_test.dart
|
View
|
1
2
3
|
4 chunks |
+7 lines, -10 lines |
0 comments
|
Download
|
|
A |
pkg/front_end/test/summary_generator_test.dart
|
View
|
|
1 chunk |
+152 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/tool/fasta_perf.dart
|
View
|
1
2
3
|
7 chunks |
+23 lines, -36 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/tool/perf.dart
|
View
|
1
2
3
|
3 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/binary/ast_from_binary.dart
|
View
|
1
2
3
4
|
4 chunks |
+32 lines, -9 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/binary/limited_ast_to_binary.dart
|
View
|
1
2
3
4
|
2 chunks |
+25 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/target/targets.dart
|
View
|
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/target/vm.dart
|
View
|
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/test/closures/suite.dart
|
View
|
|
4 chunks |
+13 lines, -73 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/test/interpreter/suite.dart
|
View
|
|
1 chunk |
+7 lines, -72 lines |
0 comments
|
Download
|
|
M |
pkg/pkg.status
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
D |
runtime/bin/vmservice_sdk/lib/libraries.json
|
View
|
|
1 chunk |
+0 lines, -6 lines |
0 comments
|
Download
|
|
M |
tests/compiler/dart2js/dart2js.status
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
tests/compiler/dart2js/dill_loader_test.dart
|
View
|
|
3 chunks |
+21 lines, -17 lines |
0 comments
|
Download
|
|
M |
tools/patch_sdk.dart
|
View
|
1
|
4 chunks |
+104 lines, -45 lines |
0 comments
|
Download
|
|
M |
utils/kernel-service/kernel-service.dart
|
View
|
|
3 chunks |
+172 lines, -7 lines |
0 comments
|
Download
|
Total messages: 39 (21 generated)
|