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