| 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/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/token.h" | 10 #include "vm/token.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 V(Double) \ | 61 V(Double) \ |
| 62 V(Bool) \ | 62 V(Bool) \ |
| 63 V(GrowableObjectArray) \ | 63 V(GrowableObjectArray) \ |
| 64 V(TypedData) \ | 64 V(TypedData) \ |
| 65 V(ExternalTypedData) \ | 65 V(ExternalTypedData) \ |
| 66 V(Stacktrace) \ | 66 V(Stacktrace) \ |
| 67 V(JSRegExp) \ | 67 V(JSRegExp) \ |
| 68 V(WeakProperty) \ | 68 V(WeakProperty) \ |
| 69 V(MirrorReference) \ | 69 V(MirrorReference) \ |
| 70 V(Float32x4) \ | 70 V(Float32x4) \ |
| 71 V(Int32x4) \ | 71 V(Int32x4) \ |
| 72 | 72 |
| 73 #define CLASS_LIST_ARRAYS(V) \ | 73 #define CLASS_LIST_ARRAYS(V) \ |
| 74 V(Array) \ | 74 V(Array) \ |
| 75 V(ImmutableArray) \ | 75 V(ImmutableArray) \ |
| 76 | 76 |
| 77 #define CLASS_LIST_STRINGS(V) \ | 77 #define CLASS_LIST_STRINGS(V) \ |
| 78 V(String) \ | 78 V(String) \ |
| 79 V(OneByteString) \ | 79 V(OneByteString) \ |
| 80 V(TwoByteString) \ | 80 V(TwoByteString) \ |
| 81 V(ExternalOneByteString) \ | 81 V(ExternalOneByteString) \ |
| 82 V(ExternalTwoByteString) | 82 V(ExternalTwoByteString) |
| 83 | 83 |
| 84 #define CLASS_LIST_TYPED_DATA(V) \ | 84 #define CLASS_LIST_TYPED_DATA(V) \ |
| 85 V(Int8Array) \ | 85 V(Int8Array) \ |
| 86 V(Uint8Array) \ | 86 V(Uint8Array) \ |
| 87 V(Uint8ClampedArray) \ | 87 V(Uint8ClampedArray) \ |
| 88 V(Int16Array) \ | 88 V(Int16Array) \ |
| 89 V(Uint16Array) \ | 89 V(Uint16Array) \ |
| 90 V(Int32Array) \ | 90 V(Int32Array) \ |
| 91 V(Uint32Array) \ | 91 V(Uint32Array) \ |
| 92 V(Int64Array) \ | 92 V(Int64Array) \ |
| 93 V(Uint64Array) \ | 93 V(Uint64Array) \ |
| 94 V(Float32Array) \ | 94 V(Float32Array) \ |
| 95 V(Float64Array) \ | 95 V(Float64Array) \ |
| 96 V(Float32x4Array) \ | 96 V(Float32x4Array) \ |
| 97 V(Int32x4Array) \ | 97 V(Int32x4Array) \ |
| 98 | 98 |
| 99 #define CLASS_LIST_FOR_HANDLES(V) \ | 99 #define CLASS_LIST_FOR_HANDLES(V) \ |
| 100 CLASS_LIST_NO_OBJECT_NOR_STRING_NOR_ARRAY(V) \ | 100 CLASS_LIST_NO_OBJECT_NOR_STRING_NOR_ARRAY(V) \ |
| 101 V(Array) \ | 101 V(Array) \ |
| 102 V(String) | 102 V(String) |
| 103 | 103 |
| 104 #define CLASS_LIST_NO_OBJECT(V) \ | 104 #define CLASS_LIST_NO_OBJECT(V) \ |
| 105 CLASS_LIST_NO_OBJECT_NOR_STRING_NOR_ARRAY(V) \ | 105 CLASS_LIST_NO_OBJECT_NOR_STRING_NOR_ARRAY(V) \ |
| 106 CLASS_LIST_ARRAYS(V) \ | 106 CLASS_LIST_ARRAYS(V) \ |
| 107 CLASS_LIST_STRINGS(V) | 107 CLASS_LIST_STRINGS(V) |
| (...skipping 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1725 // Make sure this is updated when new TypedData types are added. | 1725 // Make sure this is updated when new TypedData types are added. |
| 1726 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 13); | 1726 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 13); |
| 1727 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 14); | 1727 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 14); |
| 1728 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 13); | 1728 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 13); |
| 1729 return (kNullCid - kTypedDataInt8ArrayCid); | 1729 return (kNullCid - kTypedDataInt8ArrayCid); |
| 1730 } | 1730 } |
| 1731 | 1731 |
| 1732 } // namespace dart | 1732 } // namespace dart |
| 1733 | 1733 |
| 1734 #endif // VM_RAW_OBJECT_H_ | 1734 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |