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

Unified Diff: lib/isolate/frog/messages.dart

Issue 9652001: SendPort + ReceivePort changes: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/isolate/frog/isolateimpl.dart ('k') | lib/isolate/frog/ports.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/isolate/frog/messages.dart
diff --git a/lib/isolate/frog/messages.dart b/lib/isolate/frog/messages.dart
index e5d36b26b46d3f27e6f368dbea5ee2b69b741a1d..0e435143e0abf3a3c4406ee2dee55191b7b26e58 100644
--- a/lib/isolate/frog/messages.dart
+++ b/lib/isolate/frog/messages.dart
@@ -70,8 +70,6 @@ class _MessageTraverser {
if (x is _NativeJsSendPort) return visitNativeJsSendPort(x);
if (x is _WorkerSendPort) return visitWorkerSendPort(x);
if (x is _BufferingSendPort) return visitBufferingSendPort(x);
- if (x is _ReceivePortImpl) return visitReceivePort(x);
- if (x is _ReceivePortSingleShotImpl) return visitReceivePortSingleShot(x);
// TODO(floitsch): make this a real exception. (which one)?
throw "Message serialization: Illegal value $x passed";
}
@@ -82,8 +80,6 @@ class _MessageTraverser {
abstract visitNativeJsSendPort(_NativeJsSendPort x);
abstract visitWorkerSendPort(_WorkerSendPort x);
abstract visitBufferingSendPort(_BufferingSendPort x);
- abstract visitReceivePort(_ReceivePortImpl x);
- abstract visitReceivePortSingleShot(_ReceivePortSingleShotImpl x);
_clearAttachedInfo(var o) native
"o['__MessageTraverser__attached_info__'] = (void 0);";
@@ -158,14 +154,6 @@ class _Copier extends _MessageTraverser {
+ " ports are resolved at this point.";
}
}
-
- SendPort visitReceivePort(_ReceivePortImpl port) {
- return port.toSendPort();
- }
-
- SendPort visitReceivePortSingleShot(_ReceivePortSingleShotImpl port) {
- return port.toSendPort();
- }
}
/** Visitor that serializes a message as a JSON array. */
@@ -218,14 +206,6 @@ class _Serializer extends _MessageTraverser {
}
}
- visitReceivePort(_ReceivePortImpl port) {
- return visitNativeJsSendPort(port.toSendPort());;
- }
-
- visitReceivePortSingleShot(_ReceivePortSingleShotImpl port) {
- return visitNativeJsSendPort(port.toSendPort());
- }
-
_serializeList(List list) {
int len = list.length;
var result = new List(len);
« no previous file with comments | « lib/isolate/frog/isolateimpl.dart ('k') | lib/isolate/frog/ports.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698