Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: runtime/vm/object.h

Issue 1588783002: Do not include resolved_names_ and loaded_scripts_ consistently in both the full and script snapsho… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: adjust_comment Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/hash_table.h ('k') | runtime/vm/object.cc » ('j') | runtime/vm/raw_object_snapshot.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698