|
isolates refactor: this change introduces 'dart:isolate' as a library. This is a
big global change, so let me explain in more detail. This refactoring CL does
the following:
- moves all the dart code for isolates in a common library (lib/isolate)
- changes frog to understand 'dart:isolate' imoprts by loading the code from the
location above.
- changes the vm to undernstand 'dart:isolate' imports by creating a separate
library that is part of the bootstrap. This follows the same code-structure
that Todd suggested in his CL introducing the mirror library
- changes dartc to use the shared isolate library as the source of truth for
type checking. I left around some of the internal js code in dartc so that the
backend continues to work for apps that don't use isolates.
- changes all tests that use isolates to import the library explicitly (this is a large bulk of the files in this CL)
- changes test status for tests we can't fix in this repo (e.g. co19)
- splits the isolate library code to make it possible to preserve some tests
without exposing internal types (e.g. tests about
serialization/deserialization)
- changes the create_sdk script to copy the isolate library to the sdk
- includes the isolate library in dartdoc
I'll wait for at least one lgtm from each area (dartc, vm, frog, sdk)
There is one important pending thing this CL doesn't do:
- update test_runner.dart: This should be updated next time we upload the new
binaries to tool/testing/bin
- dartium specific changes: Vijay, is there anything I need to do for dartium?
Committed: https://code.google.com/p/dart/source/detail?r=4647
Total comments: 17
Total comments: 16
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1025 lines, -3767 lines) |
Patch |
|
M |
client/tests/client/dom/DOMIsolatesTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
client/tests/client/dom/IsolateLightTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
client/tests/client/dom/IsolatesTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
compiler/api.dart
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
compiler/dart-compiler.gyp
|
View
|
1
2
3
4
|
5 chunks |
+22 lines, -0 lines |
0 comments
|
Download
|
|
M |
compiler/dartc.xml
|
View
|
1
2
3
4
|
8 chunks |
+21 lines, -3 lines |
0 comments
|
Download
|
|
M |
compiler/java/com/google/dart/compiler/SystemLibraryManager.java
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
compiler/java/com/google/dart/compiler/backend/js/GenerateJavascriptAST.java
|
View
|
|
1 chunk |
+1 line, -3 lines |
0 comments
|
Download
|
|
M |
compiler/java/com/google/dart/compiler/resolver/CoreTypeProvider.java
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
compiler/java/com/google/dart/compiler/resolver/CoreTypeProviderImplementation.java
|
View
|
|
3 chunks |
+0 lines, -7 lines |
0 comments
|
Download
|
|
M |
compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java
|
View
|
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
M |
compiler/lib/corelib.dart
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
compiler/lib/corelib_impl.dart
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
D |
compiler/lib/implementation/isolate.dart
|
View
|
|
1 chunk |
+0 lines, -197 lines |
0 comments
|
Download
|
|
M |
compiler/lib/implementation/isolate.js
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
D |
compiler/lib/implementation/isolate_serialization.dart
|
View
|
|
1 chunk |
+0 lines, -261 lines |
0 comments
|
Download
|
|
M |
compiler/scripts/generate_my_projects.py
|
View
|
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
corelib/src/corelib_sources.gypi
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
D |
corelib/src/isolate.dart
|
View
|
|
1 chunk |
+0 lines, -182 lines |
0 comments
|
Download
|
|
M |
frog/corejs.dart
|
View
|
1
2
3
4
|
2 chunks |
+1 line, -46 lines |
0 comments
|
Download
|
|
M |
frog/gen.dart
|
View
|
1
2
3
|
1 chunk |
+5 lines, -13 lines |
0 comments
|
Download
|
|
M |
frog/leg/lib/core.dart
|
View
|
1
2
3
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
frog/leg/scanner/source_list.dart
|
View
|
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
|
M |
frog/lib/corelib.dart
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
frog/lib/corelib_impl.dart
|
View
|
1
2
3
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
|
M |
frog/lib/frog_coreimpl_sources.gypi
|
View
|
1
2
3
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
frog/lib/frog_corelib_sources.gypi
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
D |
frog/lib/isolate.dart
|
View
|
|
1 chunk |
+0 lines, -897 lines |
0 comments
|
Download
|
|
D |
frog/lib/isolate_serialization.dart
|
View
|
|
1 chunk |
+0 lines, -337 lines |
0 comments
|
Download
|
|
D |
frog/lib/newisolate.dart
|
View
|
|
1 chunk |
+0 lines, -46 lines |
0 comments
|
Download
|
|
M |
frog/minfrog
|
View
|
1
2
3
4
|
5 chunks |
+9 lines, -21 lines |
0 comments
|
Download
|
|
M |
frog/reader.dart
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
frog/world.dart
|
View
|
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
|
A |
lib/isolate/frog/compiler_hooks.dart
|
View
|
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
|
A + |
lib/isolate/frog/isolateimpl.dart
|
View
|
1
2
3
|
22 chunks |
+75 lines, -374 lines |
0 comments
|
Download
|
|
A + |
lib/isolate/frog/messages.dart
|
View
|
1
2
3
4
|
10 chunks |
+83 lines, -86 lines |
0 comments
|
Download
|
|
A |
lib/isolate/frog/natives.js
|
View
|
|
1 chunk |
+37 lines, -0 lines |
0 comments
|
Download
|
|
A |
lib/isolate/frog/ports.dart
|
View
|
1
2
3
|
1 chunk |
+284 lines, -0 lines |
0 comments
|
Download
|
|
A + |
lib/isolate/isolate_api.dart
|
View
|
1
2
3
|
4 chunks |
+38 lines, -5 lines |
0 comments
|
Download
|
|
A |
lib/isolate/isolate_compiler.dart
|
View
|
1
2
3
|
1 chunk |
+38 lines, -0 lines |
0 comments
|
Download
|
|
A |
lib/isolate/isolate_frog.dart
|
View
|
1
2
3
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/builtin.cc
|
View
|
1
2
3
|
2 chunks |
+10 lines, -13 lines |
0 comments
|
Download
|
|
M |
runtime/bin/dartutils.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/dartutils.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/bin/io.dart
|
View
|
1
2
3
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/lib/isolate.cc
|
View
|
1
2
3
|
2 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
|
D |
runtime/lib/isolate.dart
|
View
|
1
2
3
|
9 chunks |
+35 lines, -25 lines |
0 comments
|
Download
|
|
A |
runtime/lib/isolate_sources.gypi
|
View
|
1
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/lib/lib_impl_sources.gypi
|
View
|
1
2
3
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/vm/bootstrap.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/bootstrap.cc
|
View
|
1
2
3
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/bootstrap_natives.cc
|
View
|
1
2
3
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/bootstrap_nocorelib.cc
|
View
|
1
2
3
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/custom_isolate_test.cc
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart_api_impl.cc
|
View
|
1
2
3
|
2 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart_api_impl_test.cc
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/dart_entry.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/vm/isolate_test.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/object.h
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/object.cc
|
View
|
1
2
3
4
|
3 chunks |
+22 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/object_store.h
|
View
|
|
2 chunks |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/snapshot_test.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/snapshot_test.dart
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/vm.gypi
|
View
|
1
2
3
|
4 chunks |
+48 lines, -0 lines |
0 comments
|
Download
|
|
M |
samples/chat/chat_server_lib.dart
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
samples/dartcombat/dartcombatlib.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
samples/pond/dart_lib.html
|
View
|
|
4 chunks |
+0 lines, -1120 lines |
0 comments
|
Download
|
|
M |
samples/proxy/promise.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
samples/proxy/proxy.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
samples/tests/samples/src/chat/ChatServerTest.dart
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
samples/tests/samples/src/chat/HttpTest.dart
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
samples/tests/samples/src/dartcombat/DartCombatTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
samples/tests/samples/src/proxy/MintMakerFullyIsolated_generatedTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
samples/tests/samples/src/proxy/MintMakerFullyIsolated_testSource.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
samples/tests/samples/src/proxy/MintMakerPromiseTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
samples/tests/samples/src/proxy/MintMakerPromiseWithStubs_generatedTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
samples/tests/samples/src/proxy/MintMakerPromiseWithStubs_testSource.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
samples/tests/samples/src/proxy/MintMakerRpcTest.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
samples/tests/samples/src/proxy/PromiseBasedTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/co19/co19-compiler.status
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/co19/co19-leg.status
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/co19/co19-runtime.status
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/corelib/src/FuturesTest.dart
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
D |
tests/corelib/src/PortTest.dart
|
View
|
|
1 chunk |
+0 lines, -63 lines |
0 comments
|
Download
|
|
M |
tests/isolate/isolate.status
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
tests/isolate/src/APIv2_spawnBrowserNegativeTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/APIv2_spawnBrowserTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/APIv2_spawnStandaloneNegativeTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/APIv2_spawnStandaloneTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/APIv2_spawnUriBrowserTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/APIv2_spawnUriChildIsolate.dart
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/APIv2_unresolvedPortsBrowserNegativeTest.dart
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
tests/isolate/src/APIv2_unresolvedPortsBrowserTest.dart
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
tests/isolate/src/APIv2_unresolvedPortsStandaloneNegativeTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/APIv2_unresolvedPortsStandaloneTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/ConstructorTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/CountTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/CrossIsolateMessageTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/Isolate2NegativeTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/Isolate3NegativeTest.dart
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
tests/isolate/src/IsolateComplexMessagesTest.dart
|
View
|
|
1 chunk |
+3 lines, -2 lines |
0 comments
|
Download
|
|
A + |
tests/isolate/src/IsolateImportNegativeTest.dart
|
View
|
|
1 chunk |
+12 lines, -4 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/IsolateNegativeTest.dart
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
tests/isolate/src/MandelIsolateTest.dart
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
tests/isolate/src/Message2Test.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/MessageTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/MintMakerTest.dart
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/Mixed2Test.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/MixedTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/NestedSpawn2Test.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/NestedSpawnTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A + |
tests/isolate/src/PortTest.dart
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/RequestReplyTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/SerializationTest.dart
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -13 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/SpawnTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/StaticStateTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/isolate/src/TestFramework.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/language/src/TypedMessageTest.dart
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/ChunkedStreamTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/DirectoryTest.dart
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/EchoServerStreamTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/EchoServerTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/FileInputStreamTest.dart
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/FileOutputStreamTest.dart
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/FileTest.dart
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/ListInputStreamTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/ListOutputStreamTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/SocketCloseTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/SocketManyConnectionsTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/SocketStreamCloseTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/StreamPipeTest.dart
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/src/TimeoutTest.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
tests/standalone/standalone.status
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/create_sdk.py
|
View
|
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
tools/testing/dart/test_suite.dart
|
View
|
1
2
3
4
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
utils/dartdoc/dartdoc.dart
|
View
|
1
2
3
|
3 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
Total messages: 16 (0 generated)
|