| 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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 RawArray* fields() const { return raw_ptr()->fields_; } | 851 RawArray* fields() const { return raw_ptr()->fields_; } |
| 852 void SetFields(const Array& value) const; | 852 void SetFields(const Array& value) const; |
| 853 | 853 |
| 854 // Returns true if non-static fields are defined. | 854 // Returns true if non-static fields are defined. |
| 855 bool HasInstanceFields() const; | 855 bool HasInstanceFields() const; |
| 856 | 856 |
| 857 RawArray* functions() const { return raw_ptr()->functions_; } | 857 RawArray* functions() const { return raw_ptr()->functions_; } |
| 858 void SetFunctions(const Array& value) const; | 858 void SetFunctions(const Array& value) const; |
| 859 void AddFunction(const Function& function) const; | 859 void AddFunction(const Function& function) const; |
| 860 | 860 |
| 861 RawGrowableObjectArray* closures() const { |
| 862 return raw_ptr()->closure_functions_; |
| 863 } |
| 861 void AddClosureFunction(const Function& function) const; | 864 void AddClosureFunction(const Function& function) const; |
| 862 RawFunction* LookupClosureFunction(intptr_t token_pos) const; | 865 RawFunction* LookupClosureFunction(intptr_t token_pos) const; |
| 863 | 866 |
| 864 RawFunction* LookupDynamicFunction(const String& name) const; | 867 RawFunction* LookupDynamicFunction(const String& name) const; |
| 865 RawFunction* LookupDynamicFunctionAllowPrivate(const String& name) const; | 868 RawFunction* LookupDynamicFunctionAllowPrivate(const String& name) const; |
| 866 RawFunction* LookupStaticFunction(const String& name) const; | 869 RawFunction* LookupStaticFunction(const String& name) const; |
| 867 RawFunction* LookupStaticFunctionAllowPrivate(const String& name) const; | 870 RawFunction* LookupStaticFunctionAllowPrivate(const String& name) const; |
| 868 RawFunction* LookupConstructor(const String& name) const; | 871 RawFunction* LookupConstructor(const String& name) const; |
| 869 RawFunction* LookupConstructorAllowPrivate(const String& name) const; | 872 RawFunction* LookupConstructorAllowPrivate(const String& name) const; |
| 870 RawFunction* LookupFactory(const String& name) const; | 873 RawFunction* LookupFactory(const String& name) const; |
| (...skipping 5326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6197 | 6200 |
| 6198 | 6201 |
| 6199 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6202 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6200 intptr_t index) { | 6203 intptr_t index) { |
| 6201 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6204 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6202 } | 6205 } |
| 6203 | 6206 |
| 6204 } // namespace dart | 6207 } // namespace dart |
| 6205 | 6208 |
| 6206 #endif // VM_OBJECT_H_ | 6209 #endif // VM_OBJECT_H_ |
| OLD | NEW |