| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 canonical_type_arguments_(Array::null()), | 52 canonical_type_arguments_(Array::null()), |
| 53 async_library_(Library::null()), | 53 async_library_(Library::null()), |
| 54 builtin_library_(Library::null()), | 54 builtin_library_(Library::null()), |
| 55 core_library_(Library::null()), | 55 core_library_(Library::null()), |
| 56 isolate_library_(Library::null()), | 56 isolate_library_(Library::null()), |
| 57 math_library_(Library::null()), | 57 math_library_(Library::null()), |
| 58 mirrors_library_(Library::null()), | 58 mirrors_library_(Library::null()), |
| 59 native_wrappers_library_(Library::null()), | 59 native_wrappers_library_(Library::null()), |
| 60 root_library_(Library::null()), | 60 root_library_(Library::null()), |
| 61 typed_data_library_(Library::null()), | 61 typed_data_library_(Library::null()), |
| 62 utf_library_(Library::null()), | |
| 63 libraries_(GrowableObjectArray::null()), | 62 libraries_(GrowableObjectArray::null()), |
| 64 pending_classes_(GrowableObjectArray::null()), | 63 pending_classes_(GrowableObjectArray::null()), |
| 65 pending_functions_(GrowableObjectArray::null()), | 64 pending_functions_(GrowableObjectArray::null()), |
| 66 sticky_error_(Error::null()), | 65 sticky_error_(Error::null()), |
| 67 unhandled_exception_handler_(String::null()), | 66 unhandled_exception_handler_(String::null()), |
| 68 empty_context_(Context::null()), | 67 empty_context_(Context::null()), |
| 69 stack_overflow_(Instance::null()), | 68 stack_overflow_(Instance::null()), |
| 70 out_of_memory_(Instance::null()), | 69 out_of_memory_(Instance::null()), |
| 71 preallocated_stack_trace_(Stacktrace::null()), | 70 preallocated_stack_trace_(Stacktrace::null()), |
| 72 keyword_symbols_(Array::null()), | 71 keyword_symbols_(Array::null()), |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 void ObjectStore::InitKeywordTable() { | 147 void ObjectStore::InitKeywordTable() { |
| 149 // Set up the keywords symbol array so that we can access it while scanning. | 148 // Set up the keywords symbol array so that we can access it while scanning. |
| 150 Array& keywords = Array::Handle(keyword_symbols()); | 149 Array& keywords = Array::Handle(keyword_symbols()); |
| 151 ASSERT(keywords.IsNull()); | 150 ASSERT(keywords.IsNull()); |
| 152 keywords = Array::New(Token::numKeywords, Heap::kOld); | 151 keywords = Array::New(Token::numKeywords, Heap::kOld); |
| 153 ASSERT(!keywords.IsError() && !keywords.IsNull()); | 152 ASSERT(!keywords.IsError() && !keywords.IsNull()); |
| 154 set_keyword_symbols(keywords); | 153 set_keyword_symbols(keywords); |
| 155 } | 154 } |
| 156 | 155 |
| 157 } // namespace dart | 156 } // namespace dart |
| OLD | NEW |