| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BIN_DARTUTILS_H_ | 5 #ifndef BIN_DARTUTILS_H_ |
| 6 #define BIN_DARTUTILS_H_ | 6 #define BIN_DARTUTILS_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "include/dart_native_api.h" | 9 #include "include/dart_native_api.h" |
| 10 | 10 |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 486 | 486 |
| 487 private: | 487 private: |
| 488 DISALLOW_COPY_AND_ASSIGN(CObjectArray); | 488 DISALLOW_COPY_AND_ASSIGN(CObjectArray); |
| 489 }; | 489 }; |
| 490 | 490 |
| 491 | 491 |
| 492 class CObjectSendPort : public CObject { | 492 class CObjectSendPort : public CObject { |
| 493 public: | 493 public: |
| 494 DECLARE_COBJECT_CONSTRUCTORS(SendPort) | 494 DECLARE_COBJECT_CONSTRUCTORS(SendPort) |
| 495 | 495 |
| 496 Dart_Port Value() const { return cobject_->value.as_send_port; } | 496 Dart_Port Value() const { return cobject_->value.as_send_port.id; } |
| 497 Dart_Port OriginId() const { return cobject_->value.as_send_port.origin_id; } |
| 497 | 498 |
| 498 private: | 499 private: |
| 499 DISALLOW_COPY_AND_ASSIGN(CObjectSendPort); | 500 DISALLOW_COPY_AND_ASSIGN(CObjectSendPort); |
| 500 }; | 501 }; |
| 501 | 502 |
| 502 | 503 |
| 503 class CObjectTypedData : public CObject { | 504 class CObjectTypedData : public CObject { |
| 504 public: | 505 public: |
| 505 explicit CObjectTypedData(Dart_CObject *cobject) : CObject(cobject) { | 506 explicit CObjectTypedData(Dart_CObject *cobject) : CObject(cobject) { |
| 506 ASSERT(type() == Dart_CObject_kTypedData); | 507 ASSERT(type() == Dart_CObject_kTypedData); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 | 565 |
| 565 ~ScopedBlockingCall() { | 566 ~ScopedBlockingCall() { |
| 566 Dart_IsolateUnblocked(); | 567 Dart_IsolateUnblocked(); |
| 567 } | 568 } |
| 568 }; | 569 }; |
| 569 | 570 |
| 570 } // namespace bin | 571 } // namespace bin |
| 571 } // namespace dart | 572 } // namespace dart |
| 572 | 573 |
| 573 #endif // BIN_DARTUTILS_H_ | 574 #endif // BIN_DARTUTILS_H_ |
| OLD | NEW |