| 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 function_type_(Type::null()), | 22 function_type_(Type::null()), |
| 23 dart_function_impl_type_(Type::null()), |
| 23 type_class_(Class::null()), | 24 type_class_(Class::null()), |
| 24 number_type_(Type::null()), | 25 number_type_(Type::null()), |
| 25 int_type_(Type::null()), | 26 int_type_(Type::null()), |
| 26 integer_implementation_class_(Class::null()), | 27 integer_implementation_class_(Class::null()), |
| 27 smi_class_(Class::null()), | 28 smi_class_(Class::null()), |
| 28 mint_class_(Class::null()), | 29 mint_class_(Class::null()), |
| 29 bigint_class_(Class::null()), | 30 bigint_class_(Class::null()), |
| 30 double_class_(Class::null()), | 31 double_class_(Class::null()), |
| 31 string_type_(Type::null()), | 32 string_type_(Type::null()), |
| 32 one_byte_string_class_(Class::null()), | 33 one_byte_string_class_(Class::null()), |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 void ObjectStore::InitKeywordTable() { | 144 void ObjectStore::InitKeywordTable() { |
| 144 // Set up the keywords symbol array so that we can access it while scanning. | 145 // Set up the keywords symbol array so that we can access it while scanning. |
| 145 Array& keywords = Array::Handle(keyword_symbols()); | 146 Array& keywords = Array::Handle(keyword_symbols()); |
| 146 ASSERT(keywords.IsNull()); | 147 ASSERT(keywords.IsNull()); |
| 147 keywords = Array::New(Token::numKeywords, Heap::kOld); | 148 keywords = Array::New(Token::numKeywords, Heap::kOld); |
| 148 ASSERT(!keywords.IsError() && !keywords.IsNull()); | 149 ASSERT(!keywords.IsError() && !keywords.IsNull()); |
| 149 set_keyword_symbols(keywords); | 150 set_keyword_symbols(keywords); |
| 150 } | 151 } |
| 151 | 152 |
| 152 } // namespace dart | 153 } // namespace dart |
| OLD | NEW |