Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: runtime/lib/isolate_patch.dart

Issue 11275280: Make ReceivePort an abstract class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 patch class _ReceivePortFactory { 5 patch class ReceivePort {
6 /* patch */ factory ReceivePort() { 6 /* patch */ factory ReceivePort() {
7 return new _ReceivePortImpl(); 7 return new _ReceivePortImpl();
8 } 8 }
9 } 9 }
10 10
11 class _ReceivePortImpl implements ReceivePort { 11 class _ReceivePortImpl implements ReceivePort {
12 factory _ReceivePortImpl() native "ReceivePortImpl_factory"; 12 factory _ReceivePortImpl() native "ReceivePortImpl_factory";
13 13
14 receive(void onMessage(var message, SendPort replyTo)) { 14 receive(void onMessage(var message, SendPort replyTo)) {
15 _onMessage = onMessage; 15 _onMessage = onMessage;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 if (_portInternal == null) { 120 if (_portInternal == null) {
121 _portInternal = _getPortInternal(); 121 _portInternal = _getPortInternal();
122 } 122 }
123 return _portInternal; 123 return _portInternal;
124 } 124 }
125 125
126 patch spawnFunction(void topLevelFunction()) native "isolate_spawnFunction"; 126 patch spawnFunction(void topLevelFunction()) native "isolate_spawnFunction";
127 127
128 patch spawnUri(String uri) native "isolate_spawnUri"; 128 patch spawnUri(String uri) native "isolate_spawnUri";
129 129
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/lib/isolate_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698