|
Support deferred library prefix syntax
First step towards deferred library support:
- Parse the “deferred as” import clause.
- Implement p.loadLibrary() which returns a future that
completes when the library is loaded.
- Treat type annotations of deferred types as malformed.
- Throw NoSuchMethodError when calling functions from
unloaded libraries.
- Libraries are still read synchronously, but items in the
library won’t be visible through the deferred prefix until
the future returned by loadLibrary() completes.
Committed: https://code.google.com/p/dart/source/detail?r=34481
Total comments: 17
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+360 lines, -109 lines) |
Patch |
|
M |
runtime/lib/corelib_sources.gypi
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
runtime/lib/lib_prefix.dart
|
View
|
1
2
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/lib/object.cc
|
View
|
1
2
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/bootstrap_natives.h
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/compiler.cc
|
View
|
1
2
|
1 chunk |
+8 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart_api_impl.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/object.h
|
View
|
1
2
|
4 chunks |
+52 lines, -37 lines |
0 comments
|
Download
|
|
M |
runtime/vm/object.cc
|
View
|
1
2
|
11 chunks |
+101 lines, -9 lines |
0 comments
|
Download
|
|
M |
runtime/vm/object_store.h
|
View
|
1
2
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/object_store.cc
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/parser.h
|
View
|
1
2
|
4 chunks |
+8 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/parser.cc
|
View
|
1
2
|
10 chunks |
+106 lines, -34 lines |
0 comments
|
Download
|
|
M |
runtime/vm/raw_object.h
|
View
|
1
2
|
4 chunks |
+18 lines, -14 lines |
0 comments
|
Download
|
|
M |
runtime/vm/raw_object_snapshot.cc
|
View
|
1
2
|
2 chunks |
+5 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/snapshot.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/symbols.h
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/language/deferred_constraints_type_annotation_test.dart
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
tests/language/language.status
|
View
|
1
2
|
2 chunks |
+15 lines, -10 lines |
0 comments
|
Download
|
Total messages: 8 (0 generated)
|