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 1889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1900 | 1900 |
1901 RawObject** from() { | 1901 RawObject** from() { |
1902 return reinterpret_cast<RawObject**>(&ptr()->key_); | 1902 return reinterpret_cast<RawObject**>(&ptr()->key_); |
1903 } | 1903 } |
1904 RawObject* key_; | 1904 RawObject* key_; |
1905 RawObject* value_; | 1905 RawObject* value_; |
1906 RawObject** to() { | 1906 RawObject** to() { |
1907 return reinterpret_cast<RawObject**>(&ptr()->value_); | 1907 return reinterpret_cast<RawObject**>(&ptr()->value_); |
1908 } | 1908 } |
1909 | 1909 |
| 1910 friend class DelaySet; |
1910 friend class GCMarker; | 1911 friend class GCMarker; |
1911 friend class MarkingVisitor; | 1912 friend class MarkingVisitor; |
1912 friend class Scavenger; | 1913 friend class Scavenger; |
1913 friend class ScavengerVisitor; | 1914 friend class ScavengerVisitor; |
1914 }; | 1915 }; |
1915 | 1916 |
1916 // MirrorReferences are used by mirrors to hold reflectees that are VM | 1917 // MirrorReferences are used by mirrors to hold reflectees that are VM |
1917 // internal objects, such as libraries, classes, functions or types. | 1918 // internal objects, such as libraries, classes, functions or types. |
1918 class RawMirrorReference : public RawInstance { | 1919 class RawMirrorReference : public RawInstance { |
1919 RAW_HEAP_OBJECT_IMPLEMENTATION(MirrorReference); | 1920 RAW_HEAP_OBJECT_IMPLEMENTATION(MirrorReference); |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2162 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2163 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2163 kTypedDataInt8ArrayViewCid + 15); | 2164 kTypedDataInt8ArrayViewCid + 15); |
2164 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2165 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2165 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2166 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2166 return (kNullCid - kTypedDataInt8ArrayCid); | 2167 return (kNullCid - kTypedDataInt8ArrayCid); |
2167 } | 2168 } |
2168 | 2169 |
2169 } // namespace dart | 2170 } // namespace dart |
2170 | 2171 |
2171 #endif // VM_RAW_OBJECT_H_ | 2172 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |