Index: runtime/lib/isolate.cc |
=================================================================== |
--- runtime/lib/isolate.cc (revision 3603) |
+++ runtime/lib/isolate.cc (working copy) |
@@ -10,7 +10,7 @@ |
#include "vm/dart_entry.h" |
#include "vm/exceptions.h" |
#include "vm/longjump.h" |
-#include "vm/message_queue.h" |
+#include "vm/message.h" |
#include "vm/object.h" |
#include "vm/object_store.h" |
#include "vm/port.h" |
@@ -344,7 +344,7 @@ |
DEFINE_NATIVE_ENTRY(ReceivePortImpl_factory, 1) { |
ASSERT(AbstractTypeArguments::CheckedHandle(arguments->At(0)).IsNull()); |
- intptr_t port_id = PortMap::CreatePort(); |
+ intptr_t port_id = PortMap::CreatePort(Isolate::Current()->message_handler()); |
siva
2012/01/28 00:21:05
you could use arguments->isolate() here.
turnidge
2012/01/31 20:04:31
Done.
|
const Instance& port = Instance::Handle(ReceivePortCreate(port_id)); |
arguments->SetReturn(port); |
} |