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

Unified Diff: runtime/vm/service/message.dart

Issue 300223011: - Add possibility to redirect messages if they were not delivered. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 | « runtime/vm/service.cc ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service/message.dart
===================================================================
--- runtime/vm/service/message.dart (revision 36729)
+++ runtime/vm/service/message.dart (working copy)
@@ -60,9 +60,14 @@
_completer.complete(value);
}
};
- var keys = options.keys.toList();
- var values = options.values.toList();
- var request = [receivePort.sendPort, path, keys, values];
+ var keys = options.keys.toList(growable:false);
+ var values = options.values.toList(growable:false);
+ var request = new List(5)
+ ..[0] = 0 // Make room for OOB message type.
+ ..[1] = receivePort.sendPort
+ ..[2] = path
+ ..[3] = keys
+ ..[4] = values;
sendIsolateServiceMessage(sendPort, request);
return _completer.future;
}
@@ -77,9 +82,14 @@
_completer.complete(value);
}
};
- var keys = options.keys.toList();
- var values = options.values.toList();
- var request = [receivePort.sendPort, path, keys, values];
+ var keys = options.keys.toList(growable:false);
+ var values = options.values.toList(growable:false);
+ var request = new List(5)
+ ..[0] = 0 // Make room for OOB message type.
+ ..[1] = receivePort.sendPort
+ ..[2] = path
+ ..[3] = keys
+ ..[4] = values;
sendRootServiceMessage(request);
return _completer.future;
}
« no previous file with comments | « runtime/vm/service.cc ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698