| 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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 return TypeTest(kIsMoreSpecificThan, | 1114 return TypeTest(kIsMoreSpecificThan, |
| 1115 type_arguments, | 1115 type_arguments, |
| 1116 other, | 1116 other, |
| 1117 other_type_arguments, | 1117 other_type_arguments, |
| 1118 bound_error); | 1118 bound_error); |
| 1119 } | 1119 } |
| 1120 | 1120 |
| 1121 // Check if this is the top level class. | 1121 // Check if this is the top level class. |
| 1122 bool IsTopLevel() const; | 1122 bool IsTopLevel() const; |
| 1123 | 1123 |
| 1124 bool IsPrivate() const; |
| 1125 |
| 1124 RawArray* fields() const { return raw_ptr()->fields_; } | 1126 RawArray* fields() const { return raw_ptr()->fields_; } |
| 1125 void SetFields(const Array& value) const; | 1127 void SetFields(const Array& value) const; |
| 1126 void AddField(const Field& field) const; | 1128 void AddField(const Field& field) const; |
| 1127 void AddFields(const GrowableObjectArray& fields) const; | 1129 void AddFields(const GrowableObjectArray& fields) const; |
| 1128 intptr_t FindFieldIndex(const Field& field) const; | 1130 intptr_t FindFieldIndex(const Field& field) const; |
| 1129 RawField* FieldFromIndex(intptr_t idx) const; | 1131 RawField* FieldFromIndex(intptr_t idx) const; |
| 1130 | 1132 |
| 1131 // Returns an array of all fields of this class and its superclasses indexed | 1133 // Returns an array of all fields of this class and its superclasses indexed |
| 1132 // by offset in words. | 1134 // by offset in words. |
| 1133 RawArray* OffsetToFieldMap() const; | 1135 RawArray* OffsetToFieldMap() const; |
| (...skipping 6653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7787 | 7789 |
| 7788 | 7790 |
| 7789 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7791 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7790 intptr_t index) { | 7792 intptr_t index) { |
| 7791 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7793 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7792 } | 7794 } |
| 7793 | 7795 |
| 7794 } // namespace dart | 7796 } // namespace dart |
| 7795 | 7797 |
| 7796 #endif // VM_OBJECT_H_ | 7798 #endif // VM_OBJECT_H_ |
| OLD | NEW |