| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/isolate.h" | 8 #include "vm/isolate.h" |
| 9 #include "vm/object.h" | 9 #include "vm/object.h" |
| 10 #include "vm/raw_object.h" | 10 #include "vm/raw_object.h" |
| 11 #include "vm/visitor.h" | 11 #include "vm/visitor.h" |
| 12 | 12 |
| 13 namespace dart { | 13 namespace dart { |
| 14 | 14 |
| 15 ObjectStore::ObjectStore() | 15 ObjectStore::ObjectStore() |
| 16 : object_class_(Class::null()), | 16 : object_class_(Class::null()), |
| 17 function_type_(Type::null()), | 17 function_type_(Type::null()), |
| 18 number_type_(Type::null()), | 18 number_type_(Type::null()), |
| 19 int_interface_(Type::null()), | 19 int_interface_(Type::null()), |
| 20 integer_implementation_class_(Class::null()), | 20 integer_implementation_class_(Class::null()), |
| 21 smi_class_(Class::null()), | 21 smi_class_(Class::null()), |
| 22 mint_class_(Class::null()), | 22 mint_class_(Class::null()), |
| 23 bigint_class_(Class::null()), | 23 bigint_class_(Class::null()), |
| 24 double_interface_(Type::null()), | |
| 25 double_class_(Class::null()), | 24 double_class_(Class::null()), |
| 26 string_interface_(Type::null()), | 25 string_interface_(Type::null()), |
| 27 one_byte_string_class_(Class::null()), | 26 one_byte_string_class_(Class::null()), |
| 28 two_byte_string_class_(Class::null()), | 27 two_byte_string_class_(Class::null()), |
| 29 four_byte_string_class_(Class::null()), | 28 four_byte_string_class_(Class::null()), |
| 30 external_one_byte_string_class_(Class::null()), | 29 external_one_byte_string_class_(Class::null()), |
| 31 external_two_byte_string_class_(Class::null()), | 30 external_two_byte_string_class_(Class::null()), |
| 32 external_four_byte_string_class_(Class::null()), | 31 external_four_byte_string_class_(Class::null()), |
| 33 bool_type_(Type::null()), | 32 bool_type_(Type::null()), |
| 34 bool_class_(Class::null()), | 33 bool_class_(Class::null()), |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 void ObjectStore::InitKeywordTable() { | 129 void ObjectStore::InitKeywordTable() { |
| 131 // Set up the keywords symbol array so that we can access it while scanning. | 130 // Set up the keywords symbol array so that we can access it while scanning. |
| 132 Array& keywords = Array::Handle(keyword_symbols()); | 131 Array& keywords = Array::Handle(keyword_symbols()); |
| 133 ASSERT(keywords.IsNull()); | 132 ASSERT(keywords.IsNull()); |
| 134 keywords = Array::New(Token::numKeywords, Heap::kOld); | 133 keywords = Array::New(Token::numKeywords, Heap::kOld); |
| 135 ASSERT(!keywords.IsError() && !keywords.IsNull()); | 134 ASSERT(!keywords.IsError() && !keywords.IsNull()); |
| 136 set_keyword_symbols(keywords); | 135 set_keyword_symbols(keywords); |
| 137 } | 136 } |
| 138 | 137 |
| 139 } // namespace dart | 138 } // namespace dart |
| OLD | NEW |