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

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

Issue 1947393003: - Use a map to lookup libraries by URL. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« 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) 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_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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 RawLibrary* root_library() const { return root_library_; } 325 RawLibrary* root_library() const { return root_library_; }
326 void set_root_library(const Library& value) { 326 void set_root_library(const Library& value) {
327 root_library_ = value.raw(); 327 root_library_ = value.raw();
328 } 328 }
329 329
330 RawGrowableObjectArray* libraries() const { return libraries_; } 330 RawGrowableObjectArray* libraries() const { return libraries_; }
331 void set_libraries(const GrowableObjectArray& value) { 331 void set_libraries(const GrowableObjectArray& value) {
332 libraries_ = value.raw(); 332 libraries_ = value.raw();
333 } 333 }
334 334
335 RawArray* libraries_map() const { return libraries_map_; }
336 void set_libraries_map(const Array& value) {
337 libraries_map_ = value.raw();
338 }
339
335 RawGrowableObjectArray* closure_functions() const { 340 RawGrowableObjectArray* closure_functions() const {
336 return closure_functions_; 341 return closure_functions_;
337 } 342 }
338 void set_closure_functions(const GrowableObjectArray& value) { 343 void set_closure_functions(const GrowableObjectArray& value) {
339 ASSERT(!value.IsNull()); 344 ASSERT(!value.IsNull());
340 closure_functions_ = value.raw(); 345 closure_functions_ = value.raw();
341 } 346 }
342 347
343 RawGrowableObjectArray* pending_classes() const { return pending_classes_; } 348 RawGrowableObjectArray* pending_classes() const { return pending_classes_; }
344 void set_pending_classes(const GrowableObjectArray& value) { 349 void set_pending_classes(const GrowableObjectArray& value) {
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 RawLibrary* internal_library_; 546 RawLibrary* internal_library_;
542 RawLibrary* isolate_library_; 547 RawLibrary* isolate_library_;
543 RawLibrary* math_library_; 548 RawLibrary* math_library_;
544 RawLibrary* mirrors_library_; 549 RawLibrary* mirrors_library_;
545 RawLibrary* native_wrappers_library_; 550 RawLibrary* native_wrappers_library_;
546 RawLibrary* profiler_library_; 551 RawLibrary* profiler_library_;
547 RawLibrary* root_library_; 552 RawLibrary* root_library_;
548 RawLibrary* typed_data_library_; 553 RawLibrary* typed_data_library_;
549 RawLibrary* vmservice_library_; 554 RawLibrary* vmservice_library_;
550 RawGrowableObjectArray* libraries_; 555 RawGrowableObjectArray* libraries_;
556 RawArray* libraries_map_;
551 RawGrowableObjectArray* closure_functions_; 557 RawGrowableObjectArray* closure_functions_;
552 RawGrowableObjectArray* pending_classes_; 558 RawGrowableObjectArray* pending_classes_;
553 RawGrowableObjectArray* pending_deferred_loads_; 559 RawGrowableObjectArray* pending_deferred_loads_;
554 RawGrowableObjectArray* resume_capabilities_; 560 RawGrowableObjectArray* resume_capabilities_;
555 RawGrowableObjectArray* exit_listeners_; 561 RawGrowableObjectArray* exit_listeners_;
556 RawGrowableObjectArray* error_listeners_; 562 RawGrowableObjectArray* error_listeners_;
557 RawContext* empty_context_; 563 RawContext* empty_context_;
558 RawInstance* stack_overflow_; 564 RawInstance* stack_overflow_;
559 RawInstance* out_of_memory_; 565 RawInstance* out_of_memory_;
560 RawUnhandledException* preallocated_unhandled_exception_; 566 RawUnhandledException* preallocated_unhandled_exception_;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 friend class FullSnapshotWriter; 599 friend class FullSnapshotWriter;
594 friend class SnapshotReader; 600 friend class SnapshotReader;
595 friend class VmIsolateSnapshotReader; 601 friend class VmIsolateSnapshotReader;
596 602
597 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 603 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
598 }; 604 };
599 605
600 } // namespace dart 606 } // namespace dart
601 607
602 #endif // VM_OBJECT_STORE_H_ 608 #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