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

Unified Diff: runtime/lib/isolate.cc

Issue 9182001: OOB messages and general message refactor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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/include/dart_api.h ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/isolate.cc
===================================================================
--- runtime/lib/isolate.cc (revision 3557)
+++ runtime/lib/isolate.cc (working copy)
@@ -10,6 +10,7 @@
#include "vm/dart_entry.h"
#include "vm/exceptions.h"
#include "vm/longjump.h"
+#include "vm/message_queue.h"
#include "vm/object.h"
#include "vm/object_store.h"
#include "vm/port.h"
@@ -362,7 +363,8 @@
uint8_t* data = SerializeObject(Instance::CheckedHandle(arguments->At(2)));
// TODO(turnidge): Throw an exception when the return value is false?
- PortMap::PostMessage(send_id, reply_id, Api::CastMessage(data));
+ PortMap::PostMessage(new Message(
+ send_id, reply_id, data, Message::kNormalPriority));
}
} // namespace dart
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698