| 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/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" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 builtin_library_(Library::null()), | 51 builtin_library_(Library::null()), |
| 52 core_library_(Library::null()), | 52 core_library_(Library::null()), |
| 53 crypto_library_(Library::null()), | 53 crypto_library_(Library::null()), |
| 54 isolate_library_(Library::null()), | 54 isolate_library_(Library::null()), |
| 55 json_library_(Library::null()), | 55 json_library_(Library::null()), |
| 56 math_library_(Library::null()), | 56 math_library_(Library::null()), |
| 57 mirrors_library_(Library::null()), | 57 mirrors_library_(Library::null()), |
| 58 native_wrappers_library_(Library::null()), | 58 native_wrappers_library_(Library::null()), |
| 59 root_library_(Library::null()), | 59 root_library_(Library::null()), |
| 60 typed_data_library_(Library::null()), | 60 typed_data_library_(Library::null()), |
| 61 uri_library_(Library::null()), | |
| 62 utf_library_(Library::null()), | 61 utf_library_(Library::null()), |
| 63 libraries_(GrowableObjectArray::null()), | 62 libraries_(GrowableObjectArray::null()), |
| 64 pending_classes_(GrowableObjectArray::null()), | 63 pending_classes_(GrowableObjectArray::null()), |
| 65 sticky_error_(Error::null()), | 64 sticky_error_(Error::null()), |
| 66 unhandled_exception_handler_(String::null()), | 65 unhandled_exception_handler_(String::null()), |
| 67 empty_context_(Context::null()), | 66 empty_context_(Context::null()), |
| 68 stack_overflow_(Instance::null()), | 67 stack_overflow_(Instance::null()), |
| 69 out_of_memory_(Instance::null()), | 68 out_of_memory_(Instance::null()), |
| 70 preallocated_stack_trace_(Stacktrace::null()), | 69 preallocated_stack_trace_(Stacktrace::null()), |
| 71 keyword_symbols_(Array::null()), | 70 keyword_symbols_(Array::null()), |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 void ObjectStore::InitKeywordTable() { | 136 void ObjectStore::InitKeywordTable() { |
| 138 // Set up the keywords symbol array so that we can access it while scanning. | 137 // Set up the keywords symbol array so that we can access it while scanning. |
| 139 Array& keywords = Array::Handle(keyword_symbols()); | 138 Array& keywords = Array::Handle(keyword_symbols()); |
| 140 ASSERT(keywords.IsNull()); | 139 ASSERT(keywords.IsNull()); |
| 141 keywords = Array::New(Token::numKeywords, Heap::kOld); | 140 keywords = Array::New(Token::numKeywords, Heap::kOld); |
| 142 ASSERT(!keywords.IsError() && !keywords.IsNull()); | 141 ASSERT(!keywords.IsError() && !keywords.IsNull()); |
| 143 set_keyword_symbols(keywords); | 142 set_keyword_symbols(keywords); |
| 144 } | 143 } |
| 145 | 144 |
| 146 } // namespace dart | 145 } // namespace dart |
| OLD | NEW |