| 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 17 matching lines...) Expand all Loading... |
| 28 smi_type_(Type::null()), | 28 smi_type_(Type::null()), |
| 29 mint_class_(Class::null()), | 29 mint_class_(Class::null()), |
| 30 mint_type_(Type::null()), | 30 mint_type_(Type::null()), |
| 31 bigint_class_(Class::null()), | 31 bigint_class_(Class::null()), |
| 32 double_class_(Class::null()), | 32 double_class_(Class::null()), |
| 33 double_type_(Type::null()), | 33 double_type_(Type::null()), |
| 34 float32x4_type_(Type::null()), | 34 float32x4_type_(Type::null()), |
| 35 int32x4_type_(Type::null()), | 35 int32x4_type_(Type::null()), |
| 36 float64x2_type_(Type::null()), | 36 float64x2_type_(Type::null()), |
| 37 string_type_(Type::null()), | 37 string_type_(Type::null()), |
| 38 compiletime_error_class_(Class::null()), |
| 38 future_class_(Class::null()), | 39 future_class_(Class::null()), |
| 39 completer_class_(Class::null()), | 40 completer_class_(Class::null()), |
| 40 stream_iterator_class_(Class::null()), | 41 stream_iterator_class_(Class::null()), |
| 41 symbol_class_(Class::null()), | 42 symbol_class_(Class::null()), |
| 42 one_byte_string_class_(Class::null()), | 43 one_byte_string_class_(Class::null()), |
| 43 two_byte_string_class_(Class::null()), | 44 two_byte_string_class_(Class::null()), |
| 44 external_one_byte_string_class_(Class::null()), | 45 external_one_byte_string_class_(Class::null()), |
| 45 external_two_byte_string_class_(Class::null()), | 46 external_two_byte_string_class_(Class::null()), |
| 46 bool_type_(Type::null()), | 47 bool_type_(Type::null()), |
| 47 bool_class_(Class::null()), | 48 bool_class_(Class::null()), |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 ASSERT(!cls.IsNull()); | 237 ASSERT(!cls.IsNull()); |
| 237 set_completer_class(cls); | 238 set_completer_class(cls); |
| 238 cls = async_lib.LookupClass(Symbols::StreamIterator()); | 239 cls = async_lib.LookupClass(Symbols::StreamIterator()); |
| 239 ASSERT(!cls.IsNull()); | 240 ASSERT(!cls.IsNull()); |
| 240 set_stream_iterator_class(cls); | 241 set_stream_iterator_class(cls); |
| 241 | 242 |
| 242 const Library& internal_lib = Library::Handle(internal_library()); | 243 const Library& internal_lib = Library::Handle(internal_library()); |
| 243 cls = internal_lib.LookupClass(Symbols::Symbol()); | 244 cls = internal_lib.LookupClass(Symbols::Symbol()); |
| 244 set_symbol_class(cls); | 245 set_symbol_class(cls); |
| 245 | 246 |
| 247 const Library& core_lib = Library::Handle(core_library()); |
| 248 cls = core_lib.LookupClassAllowPrivate(Symbols::_CompileTimeError()); |
| 249 ASSERT(!cls.IsNull()); |
| 250 set_compiletime_error_class(cls); |
| 251 |
| 246 // Cache the core private functions used for fast instance of checks. | 252 // Cache the core private functions used for fast instance of checks. |
| 247 simple_instance_of_function_ = | 253 simple_instance_of_function_ = |
| 248 PrivateObjectLookup(Symbols::_simpleInstanceOf()); | 254 PrivateObjectLookup(Symbols::_simpleInstanceOf()); |
| 249 simple_instance_of_true_function_ = | 255 simple_instance_of_true_function_ = |
| 250 PrivateObjectLookup(Symbols::_simpleInstanceOfTrue()); | 256 PrivateObjectLookup(Symbols::_simpleInstanceOfTrue()); |
| 251 simple_instance_of_false_function_ = | 257 simple_instance_of_false_function_ = |
| 252 PrivateObjectLookup(Symbols::_simpleInstanceOfFalse()); | 258 PrivateObjectLookup(Symbols::_simpleInstanceOfFalse()); |
| 253 #endif | 259 #endif |
| 254 } | 260 } |
| 255 | 261 |
| 256 } // namespace dart | 262 } // namespace dart |
| OLD | NEW |