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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 empty_context_(Context::null()), | 81 empty_context_(Context::null()), |
82 stack_overflow_(Instance::null()), | 82 stack_overflow_(Instance::null()), |
83 out_of_memory_(Instance::null()), | 83 out_of_memory_(Instance::null()), |
84 preallocated_unhandled_exception_(UnhandledException::null()), | 84 preallocated_unhandled_exception_(UnhandledException::null()), |
85 preallocated_stack_trace_(Stacktrace::null()), | 85 preallocated_stack_trace_(Stacktrace::null()), |
86 lookup_port_handler_(Function::null()), | 86 lookup_port_handler_(Function::null()), |
87 empty_uint32_array_(TypedData::null()), | 87 empty_uint32_array_(TypedData::null()), |
88 handle_message_function_(Function::null()), | 88 handle_message_function_(Function::null()), |
89 library_load_error_table_(Array::null()), | 89 library_load_error_table_(Array::null()), |
90 compile_time_constants_(Array::null()), | 90 compile_time_constants_(Array::null()), |
| 91 token_objects_(GrowableObjectArray::null()), |
| 92 token_objects_map_(Array::null()), |
91 megamorphic_cache_table_(GrowableObjectArray::null()), | 93 megamorphic_cache_table_(GrowableObjectArray::null()), |
92 megamorphic_miss_code_(Code::null()), | 94 megamorphic_miss_code_(Code::null()), |
93 megamorphic_miss_function_(Function::null()) { | 95 megamorphic_miss_function_(Function::null()) { |
94 for (RawObject** current = from(); current <= to(); current++) { | 96 for (RawObject** current = from(); current <= to(); current++) { |
95 ASSERT(*current == Object::null()); | 97 ASSERT(*current == Object::null()); |
96 } | 98 } |
97 } | 99 } |
98 | 100 |
99 | 101 |
100 ObjectStore::~ObjectStore() { | 102 ObjectStore::~ObjectStore() { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 cls = async_lib.LookupClass(Symbols::StreamIterator()); | 197 cls = async_lib.LookupClass(Symbols::StreamIterator()); |
196 ASSERT(!cls.IsNull()); | 198 ASSERT(!cls.IsNull()); |
197 set_stream_iterator_class(cls); | 199 set_stream_iterator_class(cls); |
198 | 200 |
199 const Library& internal_lib = Library::Handle(internal_library()); | 201 const Library& internal_lib = Library::Handle(internal_library()); |
200 cls = internal_lib.LookupClass(Symbols::Symbol()); | 202 cls = internal_lib.LookupClass(Symbols::Symbol()); |
201 set_symbol_class(cls); | 203 set_symbol_class(cls); |
202 } | 204 } |
203 | 205 |
204 } // namespace dart | 206 } // namespace dart |
OLD | NEW |