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