| 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_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
| 6 #define VM_OBJECT_H_ | 6 #define VM_OBJECT_H_ |
| 7 | 7 |
| 8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
| 9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
| 10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
| (...skipping 4026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4037 return sizeof(RawInstance); | 4037 return sizeof(RawInstance); |
| 4038 } | 4038 } |
| 4039 | 4039 |
| 4040 // TODO(iposva): Determine if this gets in the way of Smi. | 4040 // TODO(iposva): Determine if this gets in the way of Smi. |
| 4041 HEAP_OBJECT_IMPLEMENTATION(Instance, Object); | 4041 HEAP_OBJECT_IMPLEMENTATION(Instance, Object); |
| 4042 friend class Class; | 4042 friend class Class; |
| 4043 friend class Closure; | 4043 friend class Closure; |
| 4044 friend class SnapshotWriter; | 4044 friend class SnapshotWriter; |
| 4045 friend class StubCode; | 4045 friend class StubCode; |
| 4046 friend class TypedDataView; | 4046 friend class TypedDataView; |
| 4047 friend class DeferredObject; |
| 4047 }; | 4048 }; |
| 4048 | 4049 |
| 4049 | 4050 |
| 4050 // AbstractType is an abstract superclass. | 4051 // AbstractType is an abstract superclass. |
| 4051 // Subclasses of AbstractType are Type and TypeParameter. | 4052 // Subclasses of AbstractType are Type and TypeParameter. |
| 4052 class AbstractType : public Instance { | 4053 class AbstractType : public Instance { |
| 4053 public: | 4054 public: |
| 4054 virtual bool IsFinalized() const; | 4055 virtual bool IsFinalized() const; |
| 4055 virtual bool IsBeingFinalized() const; | 4056 virtual bool IsBeingFinalized() const; |
| 4056 virtual bool IsMalformed() const; | 4057 virtual bool IsMalformed() const; |
| (...skipping 2591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6648 | 6649 |
| 6649 | 6650 |
| 6650 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6651 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6651 intptr_t index) { | 6652 intptr_t index) { |
| 6652 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6653 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6653 } | 6654 } |
| 6654 | 6655 |
| 6655 } // namespace dart | 6656 } // namespace dart |
| 6656 | 6657 |
| 6657 #endif // VM_OBJECT_H_ | 6658 #endif // VM_OBJECT_H_ |
| OLD | NEW |