|
|
Introduces the new syntax for deferred loading
import "lib.dart" deferred as lib;
And then injecting a function of the name "loadLibrary" into the
namespace of the import prefix.
This FunctionElement is a triggers the builder to emit special code that causes _loadLibraryWrapper in js_helper to be called.
Dart2dart will not crash on deferred loading, but calls to
loadLibrary will become calls to a (not-existing) top-level function
loadLibrary.
The old syntax (using metadata) is still working
For now keeping the language tests with the old syntax in addition to
the updated tests.
R=floitsch@google.com, johnniwinther@google.com
Committed: https://code.google.com/p/dart/source/detail?r=34230
Total comments: 22
Total comments: 13
Total comments: 6
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+499 lines, -327 lines) |
Patch |
 |
M |
sdk/lib/_internal/compiler/implementation/compiler.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/dart2jslib.dart
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/deferred_load.dart
|
View
|
1
|
7 chunks |
+59 lines, -36 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/elements/elements.dart
|
View
|
1
2
3
4
|
3 chunks |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/elements/modelx.dart
|
View
|
1
2
3
4
|
5 chunks |
+52 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/ir/ir_builder.dart
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
|
View
|
1
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/library_loader.dart
|
View
|
1
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/resolution/members.dart
|
View
|
1
2
|
1 chunk |
+12 lines, -8 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/scanner/keyword.dart
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/scanner/listener.dart
|
View
|
|
2 chunks |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/scanner/parser.dart
|
View
|
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
View
|
1
2
3
4
|
3 chunks |
+19 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/tree/nodes.dart
|
View
|
1
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/tree/prettyprint.dart
|
View
|
1
|
2 chunks |
+38 lines, -20 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/compiler/implementation/tree/unparser.dart
|
View
|
1
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/lib/async_patch.dart
|
View
|
|
2 chunks |
+6 lines, -118 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/lib/js_helper.dart
|
View
|
1
2
3
|
2 chunks |
+126 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tests/compiler/dart2js/unparser_test.dart
|
View
|
1
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
tests/language/deferred_closurize_load_library_lib.dart
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
tests/language/deferred_closurize_load_library_test.dart
|
View
|
1
|
1 chunk |
+8 lines, -10 lines |
0 comments
|
Download
|
 |
A + |
tests/language/deferred_constraints_constants_old_syntax_lib.dart
|
View
|
1
|
0 chunks |
+-1 lines, --1 lines |
0 comments
|
Download
|
 |
A + |
tests/language/deferred_constraints_constants_old_syntax_test.dart
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
tests/language/deferred_constraints_constants_test.dart
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
A + |
tests/language/deferred_constraints_old_syntax_lib.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
tests/language/deferred_constraints_type_annotation_old_syntax_test.dart
|
View
|
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
tests/language/deferred_constraints_type_annotation_test.dart
|
View
|
|
2 chunks |
+2 lines, -5 lines |
0 comments
|
Download
|
 |
M |
tests/language/deferred_duplicate_prefix1_test.dart
|
View
|
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
tests/language/deferred_duplicate_prefix2_test.dart
|
View
|
|
1 chunk |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
tests/language/deferred_duplicate_prefix3_test.dart
|
View
|
|
1 chunk |
+2 lines, -7 lines |
0 comments
|
Download
|
 |
A + |
tests/language/deferred_load_library_wrong_args_lib.dart
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A |
tests/language/deferred_load_library_wrong_args_test.dart
|
View
|
1
2
3
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tests/language/deferred_no_prefix_test.dart
|
View
|
1
2
3
|
1 chunk |
+3 lines, -9 lines |
0 comments
|
Download
|
 |
A + |
tests/language/deferred_shadow_load_library_lib.dart
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
tests/language/deferred_shadow_load_library_test.dart
|
View
|
1
2
3
|
1 chunk |
+23 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tests/language/language.status
|
View
|
1
2
3
|
1 chunk |
+43 lines, -23 lines |
0 comments
|
Download
|
 |
M |
tests/language/language_analyzer.status
|
View
|
1
2
3
|
1 chunk |
+9 lines, -22 lines |
0 comments
|
Download
|
 |
M |
tests/language/language_analyzer2.status
|
View
|
1
2
3
|
1 chunk |
+9 lines, -22 lines |
0 comments
|
Download
|
 |
M |
tests/language/language_dart2js.status
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tests/lib/lib.status
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
tests/lib/mirrors/deferred_mirrors_metadata_test.dart
|
View
|
|
2 chunks |
+2 lines, -6 lines |
0 comments
|
Download
|
Total messages: 11 (0 generated)
|