| 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) {
|
|
|