| 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 4710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4721 friend class TypedDataView; | 4721 friend class TypedDataView; |
| 4722 }; | 4722 }; |
| 4723 | 4723 |
| 4724 | 4724 |
| 4725 class LibraryPrefix : public Instance { | 4725 class LibraryPrefix : public Instance { |
| 4726 public: | 4726 public: |
| 4727 RawString* name() const { return raw_ptr()->name_; } | 4727 RawString* name() const { return raw_ptr()->name_; } |
| 4728 virtual RawString* DictionaryName() const { return name(); } | 4728 virtual RawString* DictionaryName() const { return name(); } |
| 4729 | 4729 |
| 4730 RawArray* imports() const { return raw_ptr()->imports_; } | 4730 RawArray* imports() const { return raw_ptr()->imports_; } |
| 4731 int32_t num_imports() const { return raw_ptr()->num_imports_; } | 4731 intptr_t num_imports() const { return raw_ptr()->num_imports_; } |
| 4732 RawLibrary* importer() const { return raw_ptr()->importer_; } | 4732 RawLibrary* importer() const { return raw_ptr()->importer_; } |
| 4733 | 4733 |
| 4734 RawInstance* LoadError() const; | 4734 RawInstance* LoadError() const; |
| 4735 | 4735 |
| 4736 bool ContainsLibrary(const Library& library) const; | 4736 bool ContainsLibrary(const Library& library) const; |
| 4737 RawLibrary* GetLibrary(int index) const; | 4737 RawLibrary* GetLibrary(int index) const; |
| 4738 void AddImport(const Namespace& import) const; | 4738 void AddImport(const Namespace& import) const; |
| 4739 RawObject* LookupObject(const String& name) const; | 4739 RawObject* LookupObject(const String& name) const; |
| 4740 RawClass* LookupClass(const String& class_name) const; | 4740 RawClass* LookupClass(const String& class_name) const; |
| 4741 | 4741 |
| (...skipping 3112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7854 | 7854 |
| 7855 | 7855 |
| 7856 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7856 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 7857 intptr_t index) { | 7857 intptr_t index) { |
| 7858 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7858 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 7859 } | 7859 } |
| 7860 | 7860 |
| 7861 } // namespace dart | 7861 } // namespace dart |
| 7862 | 7862 |
| 7863 #endif // VM_OBJECT_H_ | 7863 #endif // VM_OBJECT_H_ |
| OLD | NEW |