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 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 // Returns true if non-static fields are defined. | 697 // Returns true if non-static fields are defined. |
698 bool HasInstanceFields() const; | 698 bool HasInstanceFields() const; |
699 | 699 |
700 RawArray* functions() const { return raw_ptr()->functions_; } | 700 RawArray* functions() const { return raw_ptr()->functions_; } |
701 void SetFunctions(const Array& value) const; | 701 void SetFunctions(const Array& value) const; |
702 | 702 |
703 void AddClosureFunction(const Function& function) const; | 703 void AddClosureFunction(const Function& function) const; |
704 RawFunction* LookupClosureFunction(intptr_t token_pos) const; | 704 RawFunction* LookupClosureFunction(intptr_t token_pos) const; |
705 | 705 |
706 RawFunction* LookupDynamicFunction(const String& name) const; | 706 RawFunction* LookupDynamicFunction(const String& name) const; |
| 707 RawFunction* LookupDynamicFunctionAllowPrivate(const String& name) const; |
707 RawFunction* LookupStaticFunction(const String& name) const; | 708 RawFunction* LookupStaticFunction(const String& name) const; |
| 709 RawFunction* LookupStaticFunctionAllowPrivate(const String& name) const; |
708 RawFunction* LookupConstructor(const String& name) const; | 710 RawFunction* LookupConstructor(const String& name) const; |
709 RawFunction* LookupFactory(const String& name) const; | 711 RawFunction* LookupFactory(const String& name) const; |
710 RawFunction* LookupFunction(const String& name) const; | 712 RawFunction* LookupFunction(const String& name) const; |
| 713 RawFunction* LookupFunctionAllowPrivate(const String& name) const; |
711 RawFunction* LookupGetterFunction(const String& name) const; | 714 RawFunction* LookupGetterFunction(const String& name) const; |
712 RawFunction* LookupSetterFunction(const String& name) const; | 715 RawFunction* LookupSetterFunction(const String& name) const; |
713 RawFunction* LookupFunctionAtToken(intptr_t token_pos) const; | 716 RawFunction* LookupFunctionAtToken(intptr_t token_pos) const; |
714 RawField* LookupInstanceField(const String& name) const; | 717 RawField* LookupInstanceField(const String& name) const; |
715 RawField* LookupStaticField(const String& name) const; | 718 RawField* LookupStaticField(const String& name) const; |
716 RawField* LookupField(const String& name) const; | 719 RawField* LookupField(const String& name) const; |
717 | 720 |
718 RawLibraryPrefix* LookupLibraryPrefix(const String& name) const; | 721 RawLibraryPrefix* LookupLibraryPrefix(const String& name) const; |
719 | 722 |
720 void InsertCanonicalConstant(intptr_t index, const Instance& constant) const; | 723 void InsertCanonicalConstant(intptr_t index, const Instance& constant) const; |
(...skipping 5530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6251 | 6254 |
6252 | 6255 |
6253 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6256 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
6254 intptr_t index) { | 6257 intptr_t index) { |
6255 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6258 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
6256 } | 6259 } |
6257 | 6260 |
6258 } // namespace dart | 6261 } // namespace dart |
6259 | 6262 |
6260 #endif // VM_OBJECT_H_ | 6263 #endif // VM_OBJECT_H_ |
OLD | NEW |