OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 root_library_(Library::null()), | 79 root_library_(Library::null()), |
80 libraries_(GrowableObjectArray::null()), | 80 libraries_(GrowableObjectArray::null()), |
81 pending_classes_(GrowableObjectArray::null()), | 81 pending_classes_(GrowableObjectArray::null()), |
82 sticky_error_(Error::null()), | 82 sticky_error_(Error::null()), |
83 unhandled_exception_handler_(String::null()), | 83 unhandled_exception_handler_(String::null()), |
84 empty_context_(Context::null()), | 84 empty_context_(Context::null()), |
85 stack_overflow_(Instance::null()), | 85 stack_overflow_(Instance::null()), |
86 out_of_memory_(Instance::null()), | 86 out_of_memory_(Instance::null()), |
87 keyword_symbols_(Array::null()), | 87 keyword_symbols_(Array::null()), |
88 receive_port_create_function_(Function::null()), | 88 receive_port_create_function_(Function::null()), |
| 89 lookup_receive_port_function_(Function::null()), |
89 handle_message_function_(Function::null()) { | 90 handle_message_function_(Function::null()) { |
90 } | 91 } |
91 | 92 |
92 | 93 |
93 ObjectStore::~ObjectStore() { | 94 ObjectStore::~ObjectStore() { |
94 } | 95 } |
95 | 96 |
96 | 97 |
97 void ObjectStore::VisitObjectPointers(ObjectPointerVisitor* visitor) { | 98 void ObjectStore::VisitObjectPointers(ObjectPointerVisitor* visitor) { |
98 ASSERT(visitor != NULL); | 99 ASSERT(visitor != NULL); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 void ObjectStore::InitKeywordTable() { | 138 void ObjectStore::InitKeywordTable() { |
138 // Set up the keywords symbol array so that we can access it while scanning. | 139 // Set up the keywords symbol array so that we can access it while scanning. |
139 Array& keywords = Array::Handle(keyword_symbols()); | 140 Array& keywords = Array::Handle(keyword_symbols()); |
140 ASSERT(keywords.IsNull()); | 141 ASSERT(keywords.IsNull()); |
141 keywords = Array::New(Token::numKeywords, Heap::kOld); | 142 keywords = Array::New(Token::numKeywords, Heap::kOld); |
142 ASSERT(!keywords.IsError() && !keywords.IsNull()); | 143 ASSERT(!keywords.IsError() && !keywords.IsNull()); |
143 set_keyword_symbols(keywords); | 144 set_keyword_symbols(keywords); |
144 } | 145 } |
145 | 146 |
146 } // namespace dart | 147 } // namespace dart |
OLD | NEW |