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

Unified Diff: runtime/vm/port.cc

Issue 8761007: Stop using void* types in the dart embedding api. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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/message_queue_test.cc ('k') | runtime/vm/port_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/port.cc
===================================================================
--- runtime/vm/port.cc (revision 1987)
+++ runtime/vm/port.cc (working copy)
@@ -4,6 +4,7 @@
#include "vm/port.h"
+#include "vm/dart_api_impl.h"
#include "vm/isolate.h"
#include "vm/thread.h"
#include "vm/utils.h"
@@ -168,7 +169,7 @@
Dart_ClosePortCallback callback = isolate->close_port_callback();
ASSERT(callback);
ASSERT(port != kCloseAllPorts);
- (*callback)(isolate, port);
+ (*callback)(Api::CastIsolate(isolate), port);
}
@@ -193,7 +194,7 @@
// Notify the embedder that all ports are closed.
Dart_ClosePortCallback callback = isolate->close_port_callback();
ASSERT(callback);
- (*callback)(isolate, kCloseAllPorts);
+ (*callback)(Api::CastIsolate(isolate), kCloseAllPorts);
}
@@ -216,7 +217,8 @@
// Delegate message delivery to the embedder.
Dart_PostMessageCallback callback = isolate->post_message_callback();
ASSERT(callback);
- bool result = (*callback)(isolate, dest_port, reply_port, message);
+ bool result =
+ (*callback)(Api::CastIsolate(isolate), dest_port, reply_port, message);
mutex_->Unlock();
return result;
« no previous file with comments | « runtime/vm/message_queue_test.cc ('k') | runtime/vm/port_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698