| 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 3583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3594 static RawLibrary* New(); | 3594 static RawLibrary* New(); |
| 3595 | 3595 |
| 3596 void set_num_imports(intptr_t value) const; | 3596 void set_num_imports(intptr_t value) const; |
| 3597 bool HasExports() const; | 3597 bool HasExports() const; |
| 3598 RawArray* loaded_scripts() const { return raw_ptr()->loaded_scripts_; } | 3598 RawArray* loaded_scripts() const { return raw_ptr()->loaded_scripts_; } |
| 3599 RawGrowableObjectArray* metadata() const { return raw_ptr()->metadata_; } | 3599 RawGrowableObjectArray* metadata() const { return raw_ptr()->metadata_; } |
| 3600 RawArray* dictionary() const { return raw_ptr()->dictionary_; } | 3600 RawArray* dictionary() const { return raw_ptr()->dictionary_; } |
| 3601 void InitClassDictionary() const; | 3601 void InitClassDictionary() const; |
| 3602 | 3602 |
| 3603 RawArray* resolved_names() const { return raw_ptr()->resolved_names_; } | 3603 RawArray* resolved_names() const { return raw_ptr()->resolved_names_; } |
| 3604 void InitResolvedNamesCache(intptr_t size) const; | 3604 void InitResolvedNamesCache(intptr_t size, |
| 3605 SnapshotReader* reader = NULL) const; |
| 3605 void GrowResolvedNamesCache() const; | 3606 void GrowResolvedNamesCache() const; |
| 3606 bool LookupResolvedNamesCache(const String& name, Object* obj) const; | 3607 bool LookupResolvedNamesCache(const String& name, Object* obj) const; |
| 3607 void AddToResolvedNamesCache(const String& name, const Object& obj) const; | 3608 void AddToResolvedNamesCache(const String& name, const Object& obj) const; |
| 3608 void InvalidateResolvedName(const String& name) const; | 3609 void InvalidateResolvedName(const String& name) const; |
| 3609 void InvalidateResolvedNamesCache() const; | 3610 void InvalidateResolvedNamesCache() const; |
| 3610 | 3611 |
| 3611 void InitImportList() const; | 3612 void InitImportList() const; |
| 3612 void GrowDictionary(const Array& dict, intptr_t dict_size) const; | 3613 void GrowDictionary(const Array& dict, intptr_t dict_size) const; |
| 3613 static RawLibrary* NewLibraryHelper(const String& url, | 3614 static RawLibrary* NewLibraryHelper(const String& url, |
| 3614 bool import_core_lib); | 3615 bool import_core_lib); |
| (...skipping 4628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8243 | 8244 |
| 8244 | 8245 |
| 8245 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8246 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8246 intptr_t index) { | 8247 intptr_t index) { |
| 8247 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8248 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8248 } | 8249 } |
| 8249 | 8250 |
| 8250 } // namespace dart | 8251 } // namespace dart |
| 8251 | 8252 |
| 8252 #endif // VM_OBJECT_H_ | 8253 #endif // VM_OBJECT_H_ |
| OLD | NEW |