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

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
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 // Returns head of list of registered libraries. 446 RawGrowableObjectArray* libraries() const { return libraries_; }
447 RawLibrary* registered_libraries() const { return registered_libraries_; } 447 void set_libraries(const GrowableObjectArray& value) {
448 void set_registered_libraries(const Library& value) { 448 libraries_ = value.raw();
449 registered_libraries_ = value.raw();
450 } 449 }
451 450
452 RawGrowableObjectArray* pending_classes() const { return pending_classes_; } 451 RawGrowableObjectArray* pending_classes() const { return pending_classes_; }
453 void set_pending_classes(const GrowableObjectArray& value) { 452 void set_pending_classes(const GrowableObjectArray& value) {
454 ASSERT(!value.IsNull()); 453 ASSERT(!value.IsNull());
455 pending_classes_ = value.raw(); 454 pending_classes_ = value.raw();
456 } 455 }
457 456
458 RawError* sticky_error() const { return sticky_error_; } 457 RawError* sticky_error() const { return sticky_error_; }
459 void set_sticky_error(const Error& value) { 458 void set_sticky_error(const Error& value) {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 RawArray* symbol_table_; 565 RawArray* symbol_table_;
567 RawArray* canonical_type_arguments_; 566 RawArray* canonical_type_arguments_;
568 RawLibrary* core_library_; 567 RawLibrary* core_library_;
569 RawLibrary* core_impl_library_; 568 RawLibrary* core_impl_library_;
570 RawLibrary* math_library_; 569 RawLibrary* math_library_;
571 RawLibrary* isolate_library_; 570 RawLibrary* isolate_library_;
572 RawLibrary* mirrors_library_; 571 RawLibrary* mirrors_library_;
573 RawLibrary* native_wrappers_library_; 572 RawLibrary* native_wrappers_library_;
574 RawLibrary* builtin_library_; 573 RawLibrary* builtin_library_;
575 RawLibrary* root_library_; 574 RawLibrary* root_library_;
576 RawLibrary* registered_libraries_; 575 RawGrowableObjectArray* libraries_;
577 RawGrowableObjectArray* pending_classes_; 576 RawGrowableObjectArray* pending_classes_;
578 RawError* sticky_error_; 577 RawError* sticky_error_;
579 RawContext* empty_context_; 578 RawContext* empty_context_;
580 RawInstance* stack_overflow_; 579 RawInstance* stack_overflow_;
581 RawInstance* out_of_memory_; 580 RawInstance* out_of_memory_;
582 RawArray* keyword_symbols_; 581 RawArray* keyword_symbols_;
583 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); } 582 RawObject** to() { return reinterpret_cast<RawObject**>(&keyword_symbols_); }
584 583
585 friend class SnapshotReader; 584 friend class SnapshotReader;
586 585
587 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 586 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
588 }; 587 };
589 588
590 } // namespace dart 589 } // namespace dart
591 590
592 #endif // VM_OBJECT_STORE_H_ 591 #endif // VM_OBJECT_STORE_H_
OLDNEW
« runtime/vm/object.cc ('K') | « 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