OLD | NEW |
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 weak_property_class_(Class::null()), | 58 weak_property_class_(Class::null()), |
59 symbol_table_(Array::null()), | 59 symbol_table_(Array::null()), |
60 canonical_types_(Array::null()), | 60 canonical_types_(Array::null()), |
61 canonical_type_arguments_(Array::null()), | 61 canonical_type_arguments_(Array::null()), |
62 async_library_(Library::null()), | 62 async_library_(Library::null()), |
63 builtin_library_(Library::null()), | 63 builtin_library_(Library::null()), |
64 core_library_(Library::null()), | 64 core_library_(Library::null()), |
65 collection_library_(Library::null()), | 65 collection_library_(Library::null()), |
66 convert_library_(Library::null()), | 66 convert_library_(Library::null()), |
67 developer_library_(Library::null()), | 67 developer_library_(Library::null()), |
68 internal_library_(Library::null()), | 68 _internal_library_(Library::null()), |
69 isolate_library_(Library::null()), | 69 isolate_library_(Library::null()), |
70 math_library_(Library::null()), | 70 math_library_(Library::null()), |
71 mirrors_library_(Library::null()), | 71 mirrors_library_(Library::null()), |
72 native_wrappers_library_(Library::null()), | 72 native_wrappers_library_(Library::null()), |
73 profiler_library_(Library::null()), | 73 profiler_library_(Library::null()), |
74 root_library_(Library::null()), | 74 root_library_(Library::null()), |
75 typed_data_library_(Library::null()), | 75 typed_data_library_(Library::null()), |
76 vmservice_library_(Library::null()), | 76 _vmservice_library_(Library::null()), |
77 libraries_(GrowableObjectArray::null()), | 77 libraries_(GrowableObjectArray::null()), |
78 libraries_map_(Array::null()), | 78 libraries_map_(Array::null()), |
79 closure_functions_(GrowableObjectArray::null()), | 79 closure_functions_(GrowableObjectArray::null()), |
80 pending_classes_(GrowableObjectArray::null()), | 80 pending_classes_(GrowableObjectArray::null()), |
81 pending_deferred_loads_(GrowableObjectArray::null()), | 81 pending_deferred_loads_(GrowableObjectArray::null()), |
82 resume_capabilities_(GrowableObjectArray::null()), | 82 resume_capabilities_(GrowableObjectArray::null()), |
83 exit_listeners_(GrowableObjectArray::null()), | 83 exit_listeners_(GrowableObjectArray::null()), |
84 error_listeners_(GrowableObjectArray::null()), | 84 error_listeners_(GrowableObjectArray::null()), |
85 empty_context_(Context::null()), | 85 empty_context_(Context::null()), |
86 stack_overflow_(Instance::null()), | 86 stack_overflow_(Instance::null()), |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 cls = async_lib.LookupClass(Symbols::Future()); | 233 cls = async_lib.LookupClass(Symbols::Future()); |
234 ASSERT(!cls.IsNull()); | 234 ASSERT(!cls.IsNull()); |
235 set_future_class(cls); | 235 set_future_class(cls); |
236 cls = async_lib.LookupClass(Symbols::Completer()); | 236 cls = async_lib.LookupClass(Symbols::Completer()); |
237 ASSERT(!cls.IsNull()); | 237 ASSERT(!cls.IsNull()); |
238 set_completer_class(cls); | 238 set_completer_class(cls); |
239 cls = async_lib.LookupClass(Symbols::StreamIterator()); | 239 cls = async_lib.LookupClass(Symbols::StreamIterator()); |
240 ASSERT(!cls.IsNull()); | 240 ASSERT(!cls.IsNull()); |
241 set_stream_iterator_class(cls); | 241 set_stream_iterator_class(cls); |
242 | 242 |
243 const Library& internal_lib = Library::Handle(internal_library()); | 243 const Library& internal_lib = Library::Handle(_internal_library()); |
244 cls = internal_lib.LookupClass(Symbols::Symbol()); | 244 cls = internal_lib.LookupClass(Symbols::Symbol()); |
245 set_symbol_class(cls); | 245 set_symbol_class(cls); |
246 | 246 |
247 const Library& core_lib = Library::Handle(core_library()); | 247 const Library& core_lib = Library::Handle(core_library()); |
248 cls = core_lib.LookupClassAllowPrivate(Symbols::_CompileTimeError()); | 248 cls = core_lib.LookupClassAllowPrivate(Symbols::_CompileTimeError()); |
249 ASSERT(!cls.IsNull()); | 249 ASSERT(!cls.IsNull()); |
250 set_compiletime_error_class(cls); | 250 set_compiletime_error_class(cls); |
251 | 251 |
252 // Cache the core private functions used for fast instance of checks. | 252 // Cache the core private functions used for fast instance of checks. |
253 simple_instance_of_function_ = | 253 simple_instance_of_function_ = |
254 PrivateObjectLookup(Symbols::_simpleInstanceOf()); | 254 PrivateObjectLookup(Symbols::_simpleInstanceOf()); |
255 simple_instance_of_true_function_ = | 255 simple_instance_of_true_function_ = |
256 PrivateObjectLookup(Symbols::_simpleInstanceOfTrue()); | 256 PrivateObjectLookup(Symbols::_simpleInstanceOfTrue()); |
257 simple_instance_of_false_function_ = | 257 simple_instance_of_false_function_ = |
258 PrivateObjectLookup(Symbols::_simpleInstanceOfFalse()); | 258 PrivateObjectLookup(Symbols::_simpleInstanceOfFalse()); |
259 #endif | 259 #endif |
260 } | 260 } |
261 | 261 |
262 } // namespace dart | 262 } // namespace dart |
OLD | NEW |