| 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 3536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3547 } | 3547 } |
| 3548 void set_toplevel_class(const Class& value) const; | 3548 void set_toplevel_class(const Class& value) const; |
| 3549 | 3549 |
| 3550 RawGrowableObjectArray* patch_classes() const { | 3550 RawGrowableObjectArray* patch_classes() const { |
| 3551 return raw_ptr()->patch_classes_; | 3551 return raw_ptr()->patch_classes_; |
| 3552 } | 3552 } |
| 3553 | 3553 |
| 3554 // Library imports. | 3554 // Library imports. |
| 3555 RawArray* imports() const { return raw_ptr()->imports_; } | 3555 RawArray* imports() const { return raw_ptr()->imports_; } |
| 3556 RawArray* exports() const { return raw_ptr()->exports_; } | 3556 RawArray* exports() const { return raw_ptr()->exports_; } |
| 3557 RawArray* exports2() const { return raw_ptr()->exports_; } | 3557 RawArray* exports2() const { return raw_ptr()->exports2_; } |
| 3558 void AddImport(const Namespace& ns) const; | 3558 void AddImport(const Namespace& ns) const; |
| 3559 intptr_t num_imports() const { return raw_ptr()->num_imports_; } | 3559 intptr_t num_imports() const { return raw_ptr()->num_imports_; } |
| 3560 RawNamespace* ImportAt(intptr_t index) const; | 3560 RawNamespace* ImportAt(intptr_t index) const; |
| 3561 RawLibrary* ImportLibraryAt(intptr_t index) const; | 3561 RawLibrary* ImportLibraryAt(intptr_t index) const; |
| 3562 bool ImportsCorelib() const; | 3562 bool ImportsCorelib() const; |
| 3563 | 3563 |
| 3564 void DropDependencies() const; | 3564 void DropDependencies() const; |
| 3565 | 3565 |
| 3566 // Resolving native methods for script loaded in the library. | 3566 // Resolving native methods for script loaded in the library. |
| 3567 Dart_NativeEntryResolver native_entry_resolver() const { | 3567 Dart_NativeEntryResolver native_entry_resolver() const { |
| (...skipping 4848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8416 | 8416 |
| 8417 | 8417 |
| 8418 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8418 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8419 intptr_t index) { | 8419 intptr_t index) { |
| 8420 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8420 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8421 } | 8421 } |
| 8422 | 8422 |
| 8423 } // namespace dart | 8423 } // namespace dart |
| 8424 | 8424 |
| 8425 #endif // VM_OBJECT_H_ | 8425 #endif // VM_OBJECT_H_ |
| OLD | NEW |