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

Unified Diff: runtime/vm/native_api_impl.cc

Issue 2651633002: VM: [Kernel] Fix bootstraping when Kernel isolate is used. (Closed)
Patch Set: Landing issue Created 3 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/vm/kernel_isolate.cc ('k') | runtime/vm/native_message_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/native_api_impl.cc
diff --git a/runtime/vm/native_api_impl.cc b/runtime/vm/native_api_impl.cc
index 4729375f4d50ac53663c948814e7ffb466648ce2..13bab8654998f859564c23befdbe8837e89dbb2a 100644
--- a/runtime/vm/native_api_impl.cc
+++ b/runtime/vm/native_api_impl.cc
@@ -82,7 +82,8 @@ DART_EXPORT bool Dart_PostInteger(Dart_Port port_id, int64_t message) {
DART_EXPORT Dart_Port Dart_NewNativePort(const char* name,
Dart_NativeMessageHandler handler,
- bool handle_concurrently) {
+ bool handle_concurrently,
+ void* peer) {
if (name == NULL) {
name = "<UnnamedNativePort>";
}
@@ -94,7 +95,7 @@ DART_EXPORT Dart_Port Dart_NewNativePort(const char* name,
// Start the native port without a current isolate.
IsolateSaver saver(Isolate::Current());
- NativeMessageHandler* nmh = new NativeMessageHandler(name, handler);
+ NativeMessageHandler* nmh = new NativeMessageHandler(name, handler, peer);
Dart_Port port_id = PortMap::CreatePort(nmh);
PortMap::SetPortState(port_id, PortMap::kLivePort);
nmh->Run(Dart::thread_pool(), NULL, NULL, 0);
« no previous file with comments | « runtime/vm/kernel_isolate.cc ('k') | runtime/vm/native_message_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698