| 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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 633   friend class Type;  // GetClassId | 633   friend class Type;  // GetClassId | 
| 634   friend class TypedData; | 634   friend class TypedData; | 
| 635   friend class TypedDataView; | 635   friend class TypedDataView; | 
| 636   friend class WeakProperty;  // StorePointer | 636   friend class WeakProperty;  // StorePointer | 
| 637   friend class Instance;  // StorePointer | 637   friend class Instance;  // StorePointer | 
| 638   friend class StackFrame;  // GetCodeObject assertion. | 638   friend class StackFrame;  // GetCodeObject assertion. | 
| 639   friend class CodeLookupTableBuilder;  // profiler | 639   friend class CodeLookupTableBuilder;  // profiler | 
| 640   friend class NativeEntry;  // GetClassId | 640   friend class NativeEntry;  // GetClassId | 
| 641   friend class Simulator; | 641   friend class Simulator; | 
| 642   friend class SimulatorHelpers; | 642   friend class SimulatorHelpers; | 
|  | 643   friend class VerifyCanonicalVisitor; | 
| 643 | 644 | 
| 644   DISALLOW_ALLOCATION(); | 645   DISALLOW_ALLOCATION(); | 
| 645   DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); | 646   DISALLOW_IMPLICIT_CONSTRUCTORS(RawObject); | 
| 646 }; | 647 }; | 
| 647 | 648 | 
| 648 | 649 | 
| 649 class RawClass : public RawObject { | 650 class RawClass : public RawObject { | 
| 650  public: | 651  public: | 
| 651   enum ClassFinalizedState { | 652   enum ClassFinalizedState { | 
| 652     kAllocated = 0,  // Initial state. | 653     kAllocated = 0,  // Initial state. | 
| (...skipping 1773 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2426   COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 2427   COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == | 
| 2427                  kTypedDataInt8ArrayViewCid + 15); | 2428                  kTypedDataInt8ArrayViewCid + 15); | 
| 2428   COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 2429   COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); | 
| 2429   COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 2430   COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); | 
| 2430   return (kNullCid - kTypedDataInt8ArrayCid); | 2431   return (kNullCid - kTypedDataInt8ArrayCid); | 
| 2431 } | 2432 } | 
| 2432 | 2433 | 
| 2433 }  // namespace dart | 2434 }  // namespace dart | 
| 2434 | 2435 | 
| 2435 #endif  // VM_RAW_OBJECT_H_ | 2436 #endif  // VM_RAW_OBJECT_H_ | 
| OLD | NEW | 
|---|