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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 V(Int32Array) \ | 101 V(Int32Array) \ |
102 V(Uint32Array) \ | 102 V(Uint32Array) \ |
103 V(Int64Array) \ | 103 V(Int64Array) \ |
104 V(Uint64Array) \ | 104 V(Uint64Array) \ |
105 V(Float32Array) \ | 105 V(Float32Array) \ |
106 V(Float64Array) \ | 106 V(Float64Array) \ |
107 V(Float32x4Array) \ | 107 V(Float32x4Array) \ |
108 V(Int32x4Array) \ | 108 V(Int32x4Array) \ |
109 V(Float64x2Array) \ | 109 V(Float64x2Array) \ |
110 | 110 |
| 111 #define DART_CLASS_LIST_TYPED_DATA(V) \ |
| 112 V(Int8) \ |
| 113 V(Uint8) \ |
| 114 V(Uint8Clamped) \ |
| 115 V(Int16) \ |
| 116 V(Uint16) \ |
| 117 V(Int32) \ |
| 118 V(Uint32) \ |
| 119 V(Int64) \ |
| 120 V(Uint64) \ |
| 121 V(Float32) \ |
| 122 V(Float64) \ |
| 123 V(Float32x4) \ |
| 124 V(Int32x4) \ |
| 125 V(Float64x2) |
| 126 |
111 #define CLASS_LIST_FOR_HANDLES(V) \ | 127 #define CLASS_LIST_FOR_HANDLES(V) \ |
112 CLASS_LIST_NO_OBJECT_NOR_STRING_NOR_ARRAY(V) \ | 128 CLASS_LIST_NO_OBJECT_NOR_STRING_NOR_ARRAY(V) \ |
113 V(Array) \ | 129 V(Array) \ |
114 V(String) | 130 V(String) |
115 | 131 |
116 #define CLASS_LIST_NO_OBJECT(V) \ | 132 #define CLASS_LIST_NO_OBJECT(V) \ |
117 CLASS_LIST_NO_OBJECT_NOR_STRING_NOR_ARRAY(V) \ | 133 CLASS_LIST_NO_OBJECT_NOR_STRING_NOR_ARRAY(V) \ |
118 CLASS_LIST_ARRAYS(V) \ | 134 CLASS_LIST_ARRAYS(V) \ |
119 CLASS_LIST_STRINGS(V) | 135 CLASS_LIST_STRINGS(V) |
120 | 136 |
(...skipping 2234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2355 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2371 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
2356 kTypedDataInt8ArrayViewCid + 15); | 2372 kTypedDataInt8ArrayViewCid + 15); |
2357 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2373 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
2358 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2374 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
2359 return (kNullCid - kTypedDataInt8ArrayCid); | 2375 return (kNullCid - kTypedDataInt8ArrayCid); |
2360 } | 2376 } |
2361 | 2377 |
2362 } // namespace dart | 2378 } // namespace dart |
2363 | 2379 |
2364 #endif // VM_RAW_OBJECT_H_ | 2380 #endif // VM_RAW_OBJECT_H_ |
OLD | NEW |