| 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 2377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2388 RawArray* LoadedScripts() const; | 2388 RawArray* LoadedScripts() const; |
| 2389 | 2389 |
| 2390 void AddAnonymousClass(const Class& cls) const; | 2390 void AddAnonymousClass(const Class& cls) const; |
| 2391 | 2391 |
| 2392 void AddExport(const Namespace& ns) const; | 2392 void AddExport(const Namespace& ns) const; |
| 2393 | 2393 |
| 2394 void AddClassMetadata(const Class& cls, intptr_t token_pos) const; | 2394 void AddClassMetadata(const Class& cls, intptr_t token_pos) const; |
| 2395 void AddFieldMetadata(const Field& field, intptr_t token_pos) const; | 2395 void AddFieldMetadata(const Field& field, intptr_t token_pos) const; |
| 2396 void AddFunctionMetadata(const Function& func, intptr_t token_pos) const; | 2396 void AddFunctionMetadata(const Function& func, intptr_t token_pos) const; |
| 2397 void AddLibraryMetadata(const Class& cls, intptr_t token_pos) const; | 2397 void AddLibraryMetadata(const Class& cls, intptr_t token_pos) const; |
| 2398 void AddTypeParameterMetadata(const TypeParameter& param, |
| 2399 intptr_t token_pos) const; |
| 2398 RawObject* GetMetadata(const Object& obj) const; | 2400 RawObject* GetMetadata(const Object& obj) const; |
| 2399 | 2401 |
| 2400 intptr_t num_anonymous_classes() const { return raw_ptr()->num_anonymous_; } | 2402 intptr_t num_anonymous_classes() const { return raw_ptr()->num_anonymous_; } |
| 2401 RawArray* anonymous_classes() const { return raw_ptr()->anonymous_classes_; } | 2403 RawArray* anonymous_classes() const { return raw_ptr()->anonymous_classes_; } |
| 2402 | 2404 |
| 2403 // Library imports. | 2405 // Library imports. |
| 2404 void AddImport(const Namespace& ns) const; | 2406 void AddImport(const Namespace& ns) const; |
| 2405 intptr_t num_imports() const { return raw_ptr()->num_imports_; } | 2407 intptr_t num_imports() const { return raw_ptr()->num_imports_; } |
| 2406 RawNamespace* ImportAt(intptr_t index) const; | 2408 RawNamespace* ImportAt(intptr_t index) const; |
| 2407 RawLibrary* ImportLibraryAt(intptr_t index) const; | 2409 RawLibrary* ImportLibraryAt(intptr_t index) const; |
| (...skipping 3750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6158 | 6160 |
| 6159 | 6161 |
| 6160 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6162 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6161 intptr_t index) { | 6163 intptr_t index) { |
| 6162 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6164 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6163 } | 6165 } |
| 6164 | 6166 |
| 6165 } // namespace dart | 6167 } // namespace dart |
| 6166 | 6168 |
| 6167 #endif // VM_OBJECT_H_ | 6169 #endif // VM_OBJECT_H_ |
| OLD | NEW |