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 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1187 RawFunction* LookupConstructorAllowPrivate(const String& name) const; | 1187 RawFunction* LookupConstructorAllowPrivate(const String& name) const; |
1188 RawFunction* LookupFactory(const String& name) const; | 1188 RawFunction* LookupFactory(const String& name) const; |
1189 RawFunction* LookupFactoryAllowPrivate(const String& name) const; | 1189 RawFunction* LookupFactoryAllowPrivate(const String& name) const; |
1190 RawFunction* LookupFunction(const String& name) const; | 1190 RawFunction* LookupFunction(const String& name) const; |
1191 RawFunction* LookupFunctionAllowPrivate(const String& name) const; | 1191 RawFunction* LookupFunctionAllowPrivate(const String& name) const; |
1192 RawFunction* LookupGetterFunction(const String& name) const; | 1192 RawFunction* LookupGetterFunction(const String& name) const; |
1193 RawFunction* LookupSetterFunction(const String& name) const; | 1193 RawFunction* LookupSetterFunction(const String& name) const; |
1194 RawField* LookupInstanceField(const String& name) const; | 1194 RawField* LookupInstanceField(const String& name) const; |
1195 RawField* LookupStaticField(const String& name) const; | 1195 RawField* LookupStaticField(const String& name) const; |
1196 RawField* LookupField(const String& name) const; | 1196 RawField* LookupField(const String& name) const; |
1197 RawField* LookupFieldAllowPrivate(const String& name) const; | 1197 RawField* LookupFieldAllowPrivate(const String& name, |
| 1198 bool instance_only = false) const; |
1198 RawField* LookupInstanceFieldAllowPrivate(const String& name) const; | 1199 RawField* LookupInstanceFieldAllowPrivate(const String& name) const; |
1199 RawField* LookupStaticFieldAllowPrivate(const String& name) const; | 1200 RawField* LookupStaticFieldAllowPrivate(const String& name) const; |
1200 | 1201 |
1201 RawLibraryPrefix* LookupLibraryPrefix(const String& name) const; | 1202 RawLibraryPrefix* LookupLibraryPrefix(const String& name) const; |
1202 | 1203 |
1203 // Returns an instance of Double or Double::null(). | 1204 // Returns an instance of Double or Double::null(). |
1204 // 'index' points to either: | 1205 // 'index' points to either: |
1205 // - constants_list_ position of found element, or | 1206 // - constants_list_ position of found element, or |
1206 // - constants_list_ position where new canonical can be inserted. | 1207 // - constants_list_ position where new canonical can be inserted. |
1207 RawDouble* LookupCanonicalDouble(Zone* zone, | 1208 RawDouble* LookupCanonicalDouble(Zone* zone, |
(...skipping 7449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8657 | 8658 |
8658 inline void TypeArguments::SetHash(intptr_t value) const { | 8659 inline void TypeArguments::SetHash(intptr_t value) const { |
8659 // This is only safe because we create a new Smi, which does not cause | 8660 // This is only safe because we create a new Smi, which does not cause |
8660 // heap allocation. | 8661 // heap allocation. |
8661 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8662 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
8662 } | 8663 } |
8663 | 8664 |
8664 } // namespace dart | 8665 } // namespace dart |
8665 | 8666 |
8666 #endif // VM_OBJECT_H_ | 8667 #endif // VM_OBJECT_H_ |
OLD | NEW |