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

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

Issue 10414084: Replace linked list of loaded libraries (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_STORE_H_ 5 #ifndef VM_OBJECT_STORE_H_
6 #define VM_OBJECT_STORE_H_ 6 #define VM_OBJECT_STORE_H_
7 7
8 #include "vm/object.h" 8 #include "vm/object.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 } 436 }
437 void set_builtin_library(const Library& value) { 437 void set_builtin_library(const Library& value) {
438 builtin_library_ = value.raw(); 438 builtin_library_ = value.raw();
439 } 439 }
440 440
441 RawLibrary* root_library() const { return root_library_; } 441 RawLibrary* root_library() const { return root_library_; }
442 void set_root_library(const Library& value) { 442 void set_root_library(const Library& value) {
443 root_library_ = value.raw(); 443 root_library_ = value.raw();
444 } 444 }
445 445
446 RawGrowableObjectArray* libraries() const { return libraries_; }
447 void set_libraries(const GrowableObjectArray& value) {
448 libraries_ = value.raw();
449 }
450
446 RawArray* import_map() const { return import_map_; } 451 RawArray* import_map() const { return import_map_; }
447 void set_import_map(const Array& value) { 452 void set_import_map(const Array& value) {
448 import_map_ = value.raw(); 453 import_map_ = value.raw();
449 } 454 }
450 455
451 // Returns head of list of registered libraries.
452 RawLibrary* registered_libraries() const { return registered_libraries_; }
453 void set_registered_libraries(const Library& value) {
454 registered_libraries_ = value.raw();
455 }
456
457 RawGrowableObjectArray* pending_classes() const { return pending_classes_; } 456 RawGrowableObjectArray* pending_classes() const { return pending_classes_; }
458 void set_pending_classes(const GrowableObjectArray& value) { 457 void set_pending_classes(const GrowableObjectArray& value) {
459 ASSERT(!value.IsNull()); 458 ASSERT(!value.IsNull());
460 pending_classes_ = value.raw(); 459 pending_classes_ = value.raw();
461 } 460 }
462 461
463 RawError* sticky_error() const { return sticky_error_; } 462 RawError* sticky_error() const { return sticky_error_; }
464 void set_sticky_error(const Error& value) { 463 void set_sticky_error(const Error& value) {
465 ASSERT(!value.IsNull()); 464 ASSERT(!value.IsNull());
466 sticky_error_ = value.raw(); 465 sticky_error_ = value.raw();
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 RawArray* symbol_table_; 570 RawArray* symbol_table_;
572 RawArray* canonical_type_arguments_; 571 RawArray* canonical_type_arguments_;
573 RawLibrary* core_library_; 572 RawLibrary* core_library_;
574 RawLibrary* core_impl_library_; 573 RawLibrary* core_impl_library_;
575 RawLibrary* math_library_; 574 RawLibrary* math_library_;
576 RawLibrary* isolate_library_; 575 RawLibrary* isolate_library_;
577 RawLibrary* mirrors_library_; 576 RawLibrary* mirrors_library_;
578 RawLibrary* native_wrappers_library_; 577 RawLibrary* native_wrappers_library_;
579 RawLibrary* builtin_library_; 578 RawLibrary* builtin_library_;
580 RawLibrary* root_library_; 579 RawLibrary* root_library_;
580 RawGrowableObjectArray* libraries_;
581 RawArray* import_map_; 581 RawArray* import_map_;
582 RawLibrary* registered_libraries_;
583 RawGrowableObjectArray* pending_classes_; 582 RawGrowableObjectArray* pending_classes_;
584 RawError* sticky_error_; 583 RawError* sticky_error_;
585 RawContext* empty_context_; 584 RawContext* empty_context_;
586 RawInstance* stack_overflow_; 585 RawInstance* stack_overflow_;
587 RawInstance* out_of_memory_; 586 RawInstance* out_of_memory_;
588 RawArray* keyword_symbols_; 587 RawArray* keyword_symbols_;
589 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 588 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
590 589
591 friend class SnapshotReader; 590 friend class SnapshotReader;
592 591
593 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 592 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
594 }; 593 };
595 594
596 } // namespace dart 595 } // namespace dart
597 596
598 #endif // VM_OBJECT_STORE_H_ 597 #endif // VM_OBJECT_STORE_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698