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 VM_RAW_OBJECT_H_ | 5 #ifndef VM_RAW_OBJECT_H_ |
6 #define VM_RAW_OBJECT_H_ | 6 #define VM_RAW_OBJECT_H_ |
7 | 7 |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/atomic.h" | 9 #include "vm/atomic.h" |
10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1809 // VM implementations of the basic types in the isolate. | 1809 // VM implementations of the basic types in the isolate. |
1810 class RawCapability : public RawInstance { | 1810 class RawCapability : public RawInstance { |
1811 RAW_HEAP_OBJECT_IMPLEMENTATION(Capability); | 1811 RAW_HEAP_OBJECT_IMPLEMENTATION(Capability); |
1812 uint64_t id_; | 1812 uint64_t id_; |
1813 }; | 1813 }; |
1814 | 1814 |
1815 | 1815 |
1816 class RawSendPort : public RawInstance { | 1816 class RawSendPort : public RawInstance { |
1817 RAW_HEAP_OBJECT_IMPLEMENTATION(SendPort); | 1817 RAW_HEAP_OBJECT_IMPLEMENTATION(SendPort); |
1818 Dart_Port id_; | 1818 Dart_Port id_; |
| 1819 Dart_Port origin_id_; |
1819 | 1820 |
1820 friend class ReceivePort; | 1821 friend class ReceivePort; |
1821 }; | 1822 }; |
1822 | 1823 |
1823 | 1824 |
1824 class RawReceivePort : public RawInstance { | 1825 class RawReceivePort : public RawInstance { |
1825 RAW_HEAP_OBJECT_IMPLEMENTATION(ReceivePort); | 1826 RAW_HEAP_OBJECT_IMPLEMENTATION(ReceivePort); |
1826 | 1827 |
1827 RawObject** from() { | 1828 RawObject** from() { |
1828 return reinterpret_cast<RawObject**>(&ptr()->send_port_); | 1829 return reinterpret_cast<RawObject**>(&ptr()->send_port_); |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2152 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2153 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2153 kTypedDataInt8ArrayViewCid + 15); | 2154 kTypedDataInt8ArrayViewCid + 15); |
2154 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2155 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2155 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2156 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2156 return (kNullCid - kTypedDataInt8ArrayCid); | 2157 return (kNullCid - kTypedDataInt8ArrayCid); |
2157 } | 2158 } |
2158 | 2159 |
2159 } // namespace dart | 2160 } // namespace dart |
2160 | 2161 |
2161 #endif // VM_RAW_OBJECT_H_ | 2162 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |