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

Unified Diff: runtime/vm/service.cc

Issue 354763004: - Implement Isolate.pause and Isolate.resume. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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
Index: runtime/vm/service.cc
===================================================================
--- runtime/vm/service.cc (revision 37860)
+++ runtime/vm/service.cc (working copy)
@@ -675,27 +675,25 @@
}
-void Service::HandleIsolateMessage(Isolate* isolate, const Instance& msg) {
+void Service::HandleIsolateMessage(Isolate* isolate, const Array& msg) {
ASSERT(isolate != NULL);
ASSERT(!msg.IsNull());
- ASSERT(msg.IsArray());
{
StackZone zone(isolate);
HANDLESCOPE(isolate);
- const Array& message = Array::Cast(msg);
// Message is a list with five entries.
- ASSERT(message.Length() == 5);
+ ASSERT(msg.Length() == 5);
Instance& reply_port = Instance::Handle(isolate);
GrowableObjectArray& path = GrowableObjectArray::Handle(isolate);
Array& option_keys = Array::Handle(isolate);
Array& option_values = Array::Handle(isolate);
- reply_port ^= message.At(1);
- path ^= message.At(2);
- option_keys ^= message.At(3);
- option_values ^= message.At(4);
+ reply_port ^= msg.At(1);
+ path ^= msg.At(2);
+ option_keys ^= msg.At(3);
+ option_values ^= msg.At(4);
ASSERT(!path.IsNull());
ASSERT(!option_keys.IsNull());

Powered by Google App Engine
This is Rietveld 408576698