| 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 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1153 void AddFunction(const Function& function) const; | 1153 void AddFunction(const Function& function) const; |
| 1154 void RemoveFunction(const Function& function) const; | 1154 void RemoveFunction(const Function& function) const; |
| 1155 intptr_t FindFunctionIndex(const Function& function) const; | 1155 intptr_t FindFunctionIndex(const Function& function) const; |
| 1156 RawFunction* FunctionFromIndex(intptr_t idx) const; | 1156 RawFunction* FunctionFromIndex(intptr_t idx) const; |
| 1157 intptr_t FindImplicitClosureFunctionIndex(const Function& needle) const; | 1157 intptr_t FindImplicitClosureFunctionIndex(const Function& needle) const; |
| 1158 RawFunction* ImplicitClosureFunctionFromIndex(intptr_t idx) const; | 1158 RawFunction* ImplicitClosureFunctionFromIndex(intptr_t idx) const; |
| 1159 | 1159 |
| 1160 RawGrowableObjectArray* closures() const { | 1160 RawGrowableObjectArray* closures() const { |
| 1161 return raw_ptr()->closure_functions_; | 1161 return raw_ptr()->closure_functions_; |
| 1162 } | 1162 } |
| 1163 void set_closures(const GrowableObjectArray& value) const; |
| 1163 void AddClosureFunction(const Function& function) const; | 1164 void AddClosureFunction(const Function& function) const; |
| 1164 RawFunction* LookupClosureFunction(intptr_t token_pos) const; | 1165 RawFunction* LookupClosureFunction(intptr_t token_pos) const; |
| 1165 intptr_t FindClosureIndex(const Function& function) const; | 1166 intptr_t FindClosureIndex(const Function& function) const; |
| 1166 RawFunction* ClosureFunctionFromIndex(intptr_t idx) const; | 1167 RawFunction* ClosureFunctionFromIndex(intptr_t idx) const; |
| 1167 | 1168 |
| 1168 RawFunction* LookupDynamicFunction(const String& name) const; | 1169 RawFunction* LookupDynamicFunction(const String& name) const; |
| 1169 RawFunction* LookupDynamicFunctionAllowPrivate(const String& name) const; | 1170 RawFunction* LookupDynamicFunctionAllowPrivate(const String& name) const; |
| 1170 RawFunction* LookupStaticFunction(const String& name) const; | 1171 RawFunction* LookupStaticFunction(const String& name) const; |
| 1171 RawFunction* LookupStaticFunctionAllowPrivate(const String& name) const; | 1172 RawFunction* LookupStaticFunctionAllowPrivate(const String& name) const; |
| 1172 RawFunction* LookupConstructor(const String& name) const; | 1173 RawFunction* LookupConstructor(const String& name) const; |
| (...skipping 6969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8142 | 8143 |
| 8143 | 8144 |
| 8144 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8145 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8145 intptr_t index) { | 8146 intptr_t index) { |
| 8146 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8147 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8147 } | 8148 } |
| 8148 | 8149 |
| 8149 } // namespace dart | 8150 } // namespace dart |
| 8150 | 8151 |
| 8151 #endif // VM_OBJECT_H_ | 8152 #endif // VM_OBJECT_H_ |
| OLD | NEW |