| Index: runtime/lib/isolate.dart
|
| diff --git a/runtime/lib/isolate_patch.dart b/runtime/lib/isolate.dart
|
| similarity index 93%
|
| rename from runtime/lib/isolate_patch.dart
|
| rename to runtime/lib/isolate.dart
|
| index 10f2c85f02231c92475f9546dd19dd35ddf92f5d..41c039cbe69b7caa79178f028a8266865dcdec13 100644
|
| --- a/runtime/lib/isolate_patch.dart
|
| +++ b/runtime/lib/isolate.dart
|
| @@ -2,13 +2,15 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -patch class _ReceivePortFactory {
|
| - /* patch */ factory ReceivePort() {
|
| +class _ReceivePortFactory {
|
| + factory ReceivePort() {
|
| return new _ReceivePortImpl();
|
| }
|
| }
|
|
|
| +
|
| class _ReceivePortImpl implements ReceivePort {
|
| + /*--- public interface ---*/
|
| factory _ReceivePortImpl() native "ReceivePortImpl_factory";
|
|
|
| receive(void onMessage(var message, SendPort replyTo)) {
|
| @@ -116,14 +118,13 @@ _getPortInternal() native "isolate_getPortInternal";
|
|
|
| ReceivePort _portInternal;
|
|
|
| -patch ReceivePort get port() {
|
| +ReceivePort get _port() {
|
| if (_portInternal === null) {
|
| _portInternal = _getPortInternal();
|
| }
|
| return _portInternal;
|
| }
|
|
|
| -patch spawnFunction(void topLevelFunction()) native "isolate_spawnFunction";
|
| -
|
| -patch spawnUri(String uri) native "isolate_spawnUri";
|
| +_spawnFunction(void topLevelFunction()) native "isolate_spawnFunction";
|
|
|
| +_spawnUri(String uri) native "isolate_spawnUri";
|
|
|