|
Implement canonical name scheme in kernel.
This adds a class CanonicalName that can represent a library, class,
or member. All references now go through a Reference object, which is
linked to both the AST node and its CanonicalName, so either can be
created first.
dartk now accepts multiple input files:
- If multiple dart files are given, they are all compiled.
- If multiple binaries are given, they are linked together.
Mixed dart and binary input is not supported by dartk.
dartk now has a flag --include-sdk which includes the entire SDK in
the output. This is so the SDK can be compiled alone and then linked.
Example of compiling separately and then linking:
dartk foo.dart -o foo.dill
dartk main.dart -o main.dill
dartk --include-sdk -o sdk.dill
dartk main.dill foo.dill sdk.dill --target=vm --link -o program.dill
dartk still has incredibly slow cold start due to the analyzer loading
the dart sdk, so this does not actually speed things up at the moment.
BUG=
R=ahe@google.com, kmillikin@google.com, kustermann@google.com, sigmund@google.com
Committed: https://github.com/dart-lang/sdk/commit/8bfc4b47c0ae5b506e52da7c7cf64499025c693f
Total comments: 54
Total comments: 22
Total comments: 14
Total comments: 12
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1811 lines, -1235 lines) |
Patch |
|
M |
pkg/front_end/.analysis_options
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/kernel_generator.dart
|
View
|
1
2
3
4
5
6
7
|
5 chunks |
+11 lines, -12 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/compile_platform.dart
|
View
|
1
2
3
4
|
3 chunks |
+3 lines, -9 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/kernel/kernel_target.dart
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/testing/kernel_chain.dart
|
View
|
1
2
3
4
5
6
7
|
7 chunks |
+8 lines, -13 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/fasta/testing/suite.dart
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/front_end/test/fasta/compile.status
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/bin/dartk.dart
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+70 lines, -47 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/binary.md
|
View
|
1
2
3
4
5
6
7
|
6 chunks |
+35 lines, -70 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/analyzer/ast_from_analyzer.dart
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/analyzer/loader.dart
|
View
|
1
2
3
4
5
6
7
|
13 chunks |
+39 lines, -25 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/ast.dart
|
View
|
1
2
3
4
5
6
7
|
46 chunks |
+418 lines, -153 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/binary/ast_from_binary.dart
|
View
|
1
2
3
4
5
6
7
|
15 chunks |
+315 lines, -214 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/binary/ast_to_binary.dart
|
View
|
1
2
3
4
5
6
7
|
21 chunks |
+111 lines, -127 lines |
0 comments
|
Download
|
|
D |
pkg/kernel/lib/binary/loader.dart
|
View
|
|
1 chunk |
+0 lines, -116 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/binary/tag.dart
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -10 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/lib/canonical_name.dart
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+149 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/clone.dart
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+24 lines, -20 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/frontend/accessors.dart
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/kernel.dart
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -6 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/repository.dart
|
View
|
1
2
|
1 chunk |
+0 lines, -27 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/target/targets.dart
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/text/ast_to_text.dart
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/transformations/closure/mock.dart
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/transformations/continuation.dart
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+6 lines, -7 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/transformations/empty.dart
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/transformations/insert_covariance_checks.dart
|
View
|
|
4 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/transformations/mixin_full_resolution.dart
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/transformations/treeshaker.dart
|
View
|
1
2
3
4
5
|
3 chunks |
+12 lines, -10 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/type_propagation/type_propagation.dart
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+9 lines, -3 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/lib/verifier.dart
|
View
|
1
2
3
4
5
6
7
|
10 chunks |
+33 lines, -16 lines |
0 comments
|
Download
|
|
A |
pkg/kernel/test/ast_membench.sh
|
View
|
1
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/test/baseline_tester.dart
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/test/closures/kernel_chain.dart
|
View
|
1
2
3
4
5
|
4 chunks |
+7 lines, -5 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/test/closures/suite.dart
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/test/frontend_bench.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
pkg/kernel/test/round_trip.dart
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/test/self_check_util.dart
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/test/type_parser.dart
|
View
|
1
2
3
4
5
|
1 chunk |
+8 lines, -2 lines |
0 comments
|
Download
|
|
M |
pkg/kernel/test/verify_test.dart
|
View
|
1
2
3
4
5
|
3 chunks |
+179 lines, -144 lines |
0 comments
|
Download
|
|
M |
runtime/vm/kernel.h
|
View
|
1
2
3
4
|
23 chunks |
+109 lines, -39 lines |
0 comments
|
Download
|
|
M |
runtime/vm/kernel.cc
|
View
|
1
2
3
4
|
2 chunks |
+75 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/kernel_binary.cc
|
View
|
1
2
3
4
|
37 chunks |
+113 lines, -120 lines |
0 comments
|
Download
|
|
M |
utils/kernel-service/kernel-service.dart
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
Total messages: 31 (13 generated)
|