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

Unified Diff: runtime/bin/dartutils.h

Issue 43483004: Remove the reply port form the native isolate handler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated to new isolate API Created 7 years, 2 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 | « no previous file | runtime/bin/io_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/dartutils.h
diff --git a/runtime/bin/dartutils.h b/runtime/bin/dartutils.h
index ca8fa060e57d6cd299b5b1a270fc7e76bff850e8..7f61cfa9a763969027bb3c867716fe305075ef78 100644
--- a/runtime/bin/dartutils.h
+++ b/runtime/bin/dartutils.h
@@ -251,6 +251,7 @@ class CObject {
return type() == Dart_CObject_kTypedData &&
byte_array_type() == Dart_TypedData_kUint8;
}
+ bool IsSendPort() { return type() == Dart_CObject_kSendPort; }
bool IsTrue() {
return type() == Dart_CObject_kBool && cobject_->value.as_bool;
@@ -468,6 +469,17 @@ class CObjectArray : public CObject {
};
+class CObjectSendPort : public CObject {
+ public:
+ DECLARE_COBJECT_CONSTRUCTORS(SendPort)
+
+ Dart_Port Value() const { return cobject_->value.as_send_port; }
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CObjectSendPort);
+};
+
+
class CObjectTypedData : public CObject {
public:
explicit CObjectTypedData(Dart_CObject *cobject) : CObject(cobject) {
« no previous file with comments | « no previous file | runtime/bin/io_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698