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

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

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_store.h ('k') | runtime/vm/object_test.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 #include "vm/object_store.h" 5 #include "vm/object_store.h"
6 6
7 #include "vm/exceptions.h" 7 #include "vm/exceptions.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 internal_library_(Library::null()), 66 internal_library_(Library::null()),
67 isolate_library_(Library::null()), 67 isolate_library_(Library::null()),
68 math_library_(Library::null()), 68 math_library_(Library::null()),
69 mirrors_library_(Library::null()), 69 mirrors_library_(Library::null()),
70 native_wrappers_library_(Library::null()), 70 native_wrappers_library_(Library::null()),
71 profiler_library_(Library::null()), 71 profiler_library_(Library::null()),
72 root_library_(Library::null()), 72 root_library_(Library::null()),
73 typed_data_library_(Library::null()), 73 typed_data_library_(Library::null()),
74 vmservice_library_(Library::null()), 74 vmservice_library_(Library::null()),
75 libraries_(GrowableObjectArray::null()), 75 libraries_(GrowableObjectArray::null()),
76 libraries_map_(Array::null()),
76 closure_functions_(GrowableObjectArray::null()), 77 closure_functions_(GrowableObjectArray::null()),
77 pending_classes_(GrowableObjectArray::null()), 78 pending_classes_(GrowableObjectArray::null()),
78 pending_deferred_loads_(GrowableObjectArray::null()), 79 pending_deferred_loads_(GrowableObjectArray::null()),
79 resume_capabilities_(GrowableObjectArray::null()), 80 resume_capabilities_(GrowableObjectArray::null()),
80 exit_listeners_(GrowableObjectArray::null()), 81 exit_listeners_(GrowableObjectArray::null()),
81 error_listeners_(GrowableObjectArray::null()), 82 error_listeners_(GrowableObjectArray::null()),
82 empty_context_(Context::null()), 83 empty_context_(Context::null()),
83 stack_overflow_(Instance::null()), 84 stack_overflow_(Instance::null()),
84 out_of_memory_(Instance::null()), 85 out_of_memory_(Instance::null()),
85 preallocated_unhandled_exception_(UnhandledException::null()), 86 preallocated_unhandled_exception_(UnhandledException::null()),
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 cls = async_lib.LookupClass(Symbols::StreamIterator()); 201 cls = async_lib.LookupClass(Symbols::StreamIterator());
201 ASSERT(!cls.IsNull()); 202 ASSERT(!cls.IsNull());
202 set_stream_iterator_class(cls); 203 set_stream_iterator_class(cls);
203 204
204 const Library& internal_lib = Library::Handle(internal_library()); 205 const Library& internal_lib = Library::Handle(internal_library());
205 cls = internal_lib.LookupClass(Symbols::Symbol()); 206 cls = internal_lib.LookupClass(Symbols::Symbol());
206 set_symbol_class(cls); 207 set_symbol_class(cls);
207 } 208 }
208 209
209 } // namespace dart 210 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object_store.h ('k') | runtime/vm/object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698