| 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 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 VerifiedMemory::Accept(reinterpret_cast<uword>(addr), kWordSize); | 527 VerifiedMemory::Accept(reinterpret_cast<uword>(addr), kWordSize); |
| 528 VerifiedMemory::Write(const_cast<RawSmi**>(addr), value); | 528 VerifiedMemory::Write(const_cast<RawSmi**>(addr), value); |
| 529 } | 529 } |
| 530 | 530 |
| 531 #if defined(DEBUG) | 531 #if defined(DEBUG) |
| 532 static void ValidateOverwrittenPointer(RawObject* raw); | 532 static void ValidateOverwrittenPointer(RawObject* raw); |
| 533 static void ValidateOverwrittenSmi(RawSmi* raw); | 533 static void ValidateOverwrittenSmi(RawSmi* raw); |
| 534 #endif // DEBUG | 534 #endif // DEBUG |
| 535 | 535 |
| 536 friend class Api; | 536 friend class Api; |
| 537 friend class ApiMessageReader; // GetClassId |
| 537 friend class Array; | 538 friend class Array; |
| 538 friend class ByteBuffer; | 539 friend class ByteBuffer; |
| 539 friend class Code; | 540 friend class Code; |
| 540 friend class Closure; | 541 friend class Closure; |
| 541 friend class FreeListElement; | 542 friend class FreeListElement; |
| 542 friend class Function; | 543 friend class Function; |
| 543 friend class GCMarker; | 544 friend class GCMarker; |
| 544 friend class ExternalTypedData; | 545 friend class ExternalTypedData; |
| 545 friend class ForwardList; | 546 friend class ForwardList; |
| 546 friend class GrowableObjectArray; // StorePointer | 547 friend class GrowableObjectArray; // StorePointer |
| (...skipping 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2154 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2155 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == |
| 2155 kTypedDataInt8ArrayViewCid + 15); | 2156 kTypedDataInt8ArrayViewCid + 15); |
| 2156 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2157 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); |
| 2157 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2158 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); |
| 2158 return (kNullCid - kTypedDataInt8ArrayCid); | 2159 return (kNullCid - kTypedDataInt8ArrayCid); |
| 2159 } | 2160 } |
| 2160 | 2161 |
| 2161 } // namespace dart | 2162 } // namespace dart |
| 2162 | 2163 |
| 2163 #endif // VM_RAW_OBJECT_H_ | 2164 #endif // VM_RAW_OBJECT_H_ |
| OLD | NEW |