| 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 2421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2432 inline intptr_t RawObject::NumberOfTypedDataClasses() { | 2432 inline intptr_t RawObject::NumberOfTypedDataClasses() { |
| 2433 // Make sure this is updated when new TypedData types are added. | 2433 // Make sure this is updated when new TypedData types are added. |
| 2434 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); | 2434 COMPILE_ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); |
| 2435 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2435 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2436 kTypedDataInt8ArrayViewCid + 15); | 2436 kTypedDataInt8ArrayViewCid + 15); |
| 2437 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2437 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2438 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2438 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2439 return (kNullCid - kTypedDataInt8ArrayCid); | 2439 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2440 } | 2440 } |
| 2441 | 2441 |
| 2442 |
| 2442 } // namespace dart | 2443 } // namespace dart |
| 2443 | 2444 |
| 2444 #endif // VM_RAW_OBJECT_H_ | 2445 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |