| 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" |
| 11 #include "vm/raw_object.h" | 11 #include "vm/raw_object.h" |
| 12 #include "vm/symbols.h" | 12 #include "vm/symbols.h" |
| 13 #include "vm/visitor.h" | 13 #include "vm/visitor.h" |
| 14 | 14 |
| 15 namespace dart { | 15 namespace dart { |
| 16 | 16 |
| 17 ObjectStore::ObjectStore() | 17 ObjectStore::ObjectStore() |
| 18 : object_class_(Class::null()), | 18 : object_class_(Class::null()), |
| 19 object_type_(Type::null()), | 19 object_type_(Type::null()), |
| 20 null_class_(Class::null()), | 20 null_class_(Class::null()), |
| 21 null_type_(Type::null()), | 21 null_type_(Type::null()), |
| 22 dynamic_type_(Type::null()), | |
| 23 void_type_(Type::null()), | |
| 24 function_type_(Type::null()), | 22 function_type_(Type::null()), |
| 25 type_class_(Class::null()), | 23 type_class_(Class::null()), |
| 26 number_type_(Type::null()), | 24 number_type_(Type::null()), |
| 27 int_type_(Type::null()), | 25 int_type_(Type::null()), |
| 28 integer_implementation_class_(Class::null()), | 26 integer_implementation_class_(Class::null()), |
| 29 smi_class_(Class::null()), | 27 smi_class_(Class::null()), |
| 30 mint_class_(Class::null()), | 28 mint_class_(Class::null()), |
| 31 bigint_class_(Class::null()), | 29 bigint_class_(Class::null()), |
| 32 double_class_(Class::null()), | 30 double_class_(Class::null()), |
| 33 string_type_(Type::null()), | 31 string_type_(Type::null()), |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 void ObjectStore::InitKeywordTable() { | 143 void ObjectStore::InitKeywordTable() { |
| 146 // Set up the keywords symbol array so that we can access it while scanning. | 144 // Set up the keywords symbol array so that we can access it while scanning. |
| 147 Array& keywords = Array::Handle(keyword_symbols()); | 145 Array& keywords = Array::Handle(keyword_symbols()); |
| 148 ASSERT(keywords.IsNull()); | 146 ASSERT(keywords.IsNull()); |
| 149 keywords = Array::New(Token::numKeywords, Heap::kOld); | 147 keywords = Array::New(Token::numKeywords, Heap::kOld); |
| 150 ASSERT(!keywords.IsError() && !keywords.IsNull()); | 148 ASSERT(!keywords.IsError() && !keywords.IsNull()); |
| 151 set_keyword_symbols(keywords); | 149 set_keyword_symbols(keywords); |
| 152 } | 150 } |
| 153 | 151 |
| 154 } // namespace dart | 152 } // namespace dart |
| OLD | NEW |