| 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 3732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3743 static RawLibrary* New(); | 3743 static RawLibrary* New(); |
| 3744 | 3744 |
| 3745 void set_num_imports(intptr_t value) const; | 3745 void set_num_imports(intptr_t value) const; |
| 3746 bool HasExports() const; | 3746 bool HasExports() const; |
| 3747 RawArray* loaded_scripts() const { return raw_ptr()->loaded_scripts_; } | 3747 RawArray* loaded_scripts() const { return raw_ptr()->loaded_scripts_; } |
| 3748 RawGrowableObjectArray* metadata() const { return raw_ptr()->metadata_; } | 3748 RawGrowableObjectArray* metadata() const { return raw_ptr()->metadata_; } |
| 3749 RawArray* dictionary() const { return raw_ptr()->dictionary_; } | 3749 RawArray* dictionary() const { return raw_ptr()->dictionary_; } |
| 3750 void InitClassDictionary() const; | 3750 void InitClassDictionary() const; |
| 3751 | 3751 |
| 3752 RawArray* resolved_names() const { return raw_ptr()->resolved_names_; } | 3752 RawArray* resolved_names() const { return raw_ptr()->resolved_names_; } |
| 3753 void InitResolvedNamesCache(intptr_t size, | 3753 void InitResolvedNamesCache(intptr_t size) const; |
| 3754 SnapshotReader* reader = NULL) const; | |
| 3755 void AllocateExportedNamesCache() const; | 3754 void AllocateExportedNamesCache() const; |
| 3756 void InitExportedNamesCache() const; | 3755 void InitExportedNamesCache() const; |
| 3757 static void InvalidateExportedNamesCaches(); | 3756 static void InvalidateExportedNamesCaches(); |
| 3758 bool LookupResolvedNamesCache(const String& name, Object* obj) const; | 3757 bool LookupResolvedNamesCache(const String& name, Object* obj) const; |
| 3759 void AddToResolvedNamesCache(const String& name, const Object& obj) const; | 3758 void AddToResolvedNamesCache(const String& name, const Object& obj) const; |
| 3760 void InvalidateResolvedName(const String& name) const; | 3759 void InvalidateResolvedName(const String& name) const; |
| 3761 void InvalidateResolvedNamesCache() const; | 3760 void InvalidateResolvedNamesCache() const; |
| 3762 | 3761 |
| 3763 RawArray* exported_names() const { return raw_ptr()->exported_names_; } | 3762 RawArray* exported_names() const { return raw_ptr()->exported_names_; } |
| 3764 bool LookupExportedNamesCache(const String& name, Object* obj) const; | 3763 bool LookupExportedNamesCache(const String& name, Object* obj) const; |
| (...skipping 4893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8658 | 8657 |
| 8659 inline void TypeArguments::SetHash(intptr_t value) const { | 8658 inline void TypeArguments::SetHash(intptr_t value) const { |
| 8660 // This is only safe because we create a new Smi, which does not cause | 8659 // This is only safe because we create a new Smi, which does not cause |
| 8661 // heap allocation. | 8660 // heap allocation. |
| 8662 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); | 8661 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); |
| 8663 } | 8662 } |
| 8664 | 8663 |
| 8665 } // namespace dart | 8664 } // namespace dart |
| 8666 | 8665 |
| 8667 #endif // VM_OBJECT_H_ | 8666 #endif // VM_OBJECT_H_ |
| OLD | NEW |