| 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 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1156 RawArray* OffsetToFieldMap() const; | 1156 RawArray* OffsetToFieldMap() const; |
| 1157 | 1157 |
| 1158 // Returns true if non-static fields are defined. | 1158 // Returns true if non-static fields are defined. |
| 1159 bool HasInstanceFields() const; | 1159 bool HasInstanceFields() const; |
| 1160 | 1160 |
| 1161 // TODO(koda): Unite w/ hash table. | 1161 // TODO(koda): Unite w/ hash table. |
| 1162 RawArray* functions() const { return raw_ptr()->functions_; } | 1162 RawArray* functions() const { return raw_ptr()->functions_; } |
| 1163 void SetFunctions(const Array& value) const; | 1163 void SetFunctions(const Array& value) const; |
| 1164 void AddFunction(const Function& function) const; | 1164 void AddFunction(const Function& function) const; |
| 1165 void RemoveFunction(const Function& function) const; | 1165 void RemoveFunction(const Function& function) const; |
| 1166 intptr_t FindFunctionIndex(const Function& function) const; | |
| 1167 RawFunction* FunctionFromIndex(intptr_t idx) const; | 1166 RawFunction* FunctionFromIndex(intptr_t idx) const; |
| 1168 intptr_t FindImplicitClosureFunctionIndex(const Function& needle) const; | 1167 intptr_t FindImplicitClosureFunctionIndex(const Function& needle) const; |
| 1169 RawFunction* ImplicitClosureFunctionFromIndex(intptr_t idx) const; | 1168 RawFunction* ImplicitClosureFunctionFromIndex(intptr_t idx) const; |
| 1170 | 1169 |
| 1171 RawFunction* LookupDynamicFunction(const String& name) const; | 1170 RawFunction* LookupDynamicFunction(const String& name) const; |
| 1172 RawFunction* LookupDynamicFunctionAllowPrivate(const String& name) const; | 1171 RawFunction* LookupDynamicFunctionAllowPrivate(const String& name) const; |
| 1173 RawFunction* LookupStaticFunction(const String& name) const; | 1172 RawFunction* LookupStaticFunction(const String& name) const; |
| 1174 RawFunction* LookupStaticFunctionAllowPrivate(const String& name) const; | 1173 RawFunction* LookupStaticFunctionAllowPrivate(const String& name) const; |
| 1175 RawFunction* LookupConstructor(const String& name) const; | 1174 RawFunction* LookupConstructor(const String& name) const; |
| 1176 RawFunction* LookupConstructorAllowPrivate(const String& name) const; | 1175 RawFunction* LookupConstructorAllowPrivate(const String& name) const; |
| (...skipping 7026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8203 | 8202 |
| 8204 | 8203 |
| 8205 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8204 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8206 intptr_t index) { | 8205 intptr_t index) { |
| 8207 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8206 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8208 } | 8207 } |
| 8209 | 8208 |
| 8210 } // namespace dart | 8209 } // namespace dart |
| 8211 | 8210 |
| 8212 #endif // VM_OBJECT_H_ | 8211 #endif // VM_OBJECT_H_ |
| OLD | NEW |