| 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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 void StoreSmi(RawSmi* const* addr, RawSmi* value) { | 586 void StoreSmi(RawSmi* const* addr, RawSmi* value) { |
| 587 // Can't use Contains, as array length is initialized through this method. | 587 // Can't use Contains, as array length is initialized through this method. |
| 588 ASSERT(reinterpret_cast<uword>(addr) >= RawObject::ToAddr(this)); | 588 ASSERT(reinterpret_cast<uword>(addr) >= RawObject::ToAddr(this)); |
| 589 *const_cast<RawSmi**>(addr) = value; | 589 *const_cast<RawSmi**>(addr) = value; |
| 590 } | 590 } |
| 591 | 591 |
| 592 friend class Api; | 592 friend class Api; |
| 593 friend class ApiMessageReader; // GetClassId | 593 friend class ApiMessageReader; // GetClassId |
| 594 friend class Serializer; // GetClassId | 594 friend class Serializer; // GetClassId |
| 595 friend class Array; | 595 friend class Array; |
| 596 friend class Become; // GetClassId |
| 596 friend class Bigint; | 597 friend class Bigint; |
| 597 friend class ByteBuffer; | 598 friend class ByteBuffer; |
| 598 friend class Closure; | 599 friend class Closure; |
| 599 friend class Code; | 600 friend class Code; |
| 600 friend class Double; | 601 friend class Double; |
| 601 friend class ForwardPointersVisitor; // StorePointer | 602 friend class ForwardPointersVisitor; // StorePointer |
| 602 friend class FreeListElement; | 603 friend class FreeListElement; |
| 603 friend class Function; | 604 friend class Function; |
| 604 friend class GCMarker; | 605 friend class GCMarker; |
| 605 friend class ExternalTypedData; | 606 friend class ExternalTypedData; |
| (...skipping 1817 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2423 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2424 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2424 kTypedDataInt8ArrayViewCid + 15); | 2425 kTypedDataInt8ArrayViewCid + 15); |
| 2425 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2426 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2426 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2427 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2427 return (kNullCid - kTypedDataInt8ArrayCid); | 2428 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2428 } | 2429 } |
| 2429 | 2430 |
| 2430 } // namespace dart | 2431 } // namespace dart |
| 2431 | 2432 |
| 2432 #endif // VM_RAW_OBJECT_H_ | 2433 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |