| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 closure_functions_(GrowableObjectArray::null()), |
| 76 pending_classes_(GrowableObjectArray::null()), | 77 pending_classes_(GrowableObjectArray::null()), |
| 77 pending_deferred_loads_(GrowableObjectArray::null()), | 78 pending_deferred_loads_(GrowableObjectArray::null()), |
| 78 resume_capabilities_(GrowableObjectArray::null()), | 79 resume_capabilities_(GrowableObjectArray::null()), |
| 79 exit_listeners_(GrowableObjectArray::null()), | 80 exit_listeners_(GrowableObjectArray::null()), |
| 80 error_listeners_(GrowableObjectArray::null()), | 81 error_listeners_(GrowableObjectArray::null()), |
| 81 sticky_error_(Error::null()), | 82 sticky_error_(Error::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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 ASSERT(this->out_of_memory() != Instance::null()); | 127 ASSERT(this->out_of_memory() != Instance::null()); |
| 127 ASSERT(this->preallocated_stack_trace() != Stacktrace::null()); | 128 ASSERT(this->preallocated_stack_trace() != Stacktrace::null()); |
| 128 return true; | 129 return true; |
| 129 } | 130 } |
| 130 ASSERT(this->stack_overflow() == Instance::null()); | 131 ASSERT(this->stack_overflow() == Instance::null()); |
| 131 ASSERT(this->out_of_memory() == Instance::null()); | 132 ASSERT(this->out_of_memory() == Instance::null()); |
| 132 ASSERT(this->preallocated_stack_trace() == Stacktrace::null()); | 133 ASSERT(this->preallocated_stack_trace() == Stacktrace::null()); |
| 133 | 134 |
| 134 this->pending_deferred_loads_ = GrowableObjectArray::New(); | 135 this->pending_deferred_loads_ = GrowableObjectArray::New(); |
| 135 | 136 |
| 137 this->closure_functions_ = GrowableObjectArray::New(); |
| 136 this->resume_capabilities_ = GrowableObjectArray::New(); | 138 this->resume_capabilities_ = GrowableObjectArray::New(); |
| 137 this->exit_listeners_ = GrowableObjectArray::New(); | 139 this->exit_listeners_ = GrowableObjectArray::New(); |
| 138 this->error_listeners_ = GrowableObjectArray::New(); | 140 this->error_listeners_ = GrowableObjectArray::New(); |
| 139 | 141 |
| 140 Object& result = Object::Handle(); | 142 Object& result = Object::Handle(); |
| 141 const Library& library = Library::Handle(Library::CoreLibrary()); | 143 const Library& library = Library::Handle(Library::CoreLibrary()); |
| 142 | 144 |
| 143 result = DartLibraryCalls::InstanceCreate(library, | 145 result = DartLibraryCalls::InstanceCreate(library, |
| 144 Symbols::StackOverflowError(), | 146 Symbols::StackOverflowError(), |
| 145 Symbols::Dot(), | 147 Symbols::Dot(), |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 cls = async_lib.LookupClass(Symbols::StreamIterator()); | 200 cls = async_lib.LookupClass(Symbols::StreamIterator()); |
| 199 ASSERT(!cls.IsNull()); | 201 ASSERT(!cls.IsNull()); |
| 200 set_stream_iterator_class(cls); | 202 set_stream_iterator_class(cls); |
| 201 | 203 |
| 202 const Library& internal_lib = Library::Handle(internal_library()); | 204 const Library& internal_lib = Library::Handle(internal_library()); |
| 203 cls = internal_lib.LookupClass(Symbols::Symbol()); | 205 cls = internal_lib.LookupClass(Symbols::Symbol()); |
| 204 set_symbol_class(cls); | 206 set_symbol_class(cls); |
| 205 } | 207 } |
| 206 | 208 |
| 207 } // namespace dart | 209 } // namespace dart |
| OLD | NEW |