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/dart_entry.h" | 7 #include "vm/dart_entry.h" |
8 #include "vm/exceptions.h" | 8 #include "vm/exceptions.h" |
9 #include "vm/isolate.h" | 9 #include "vm/isolate.h" |
10 #include "vm/object.h" | 10 #include "vm/object.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 async_set_thread_stack_trace_(Function::null()), | 98 async_set_thread_stack_trace_(Function::null()), |
99 async_star_move_next_helper_(Function::null()), | 99 async_star_move_next_helper_(Function::null()), |
100 complete_on_async_return_(Function::null()), | 100 complete_on_async_return_(Function::null()), |
101 async_star_stream_controller_(Class::null()), | 101 async_star_stream_controller_(Class::null()), |
102 library_load_error_table_(Array::null()), | 102 library_load_error_table_(Array::null()), |
103 unique_dynamic_targets_(Array::null()), | 103 unique_dynamic_targets_(Array::null()), |
104 token_objects_(GrowableObjectArray::null()), | 104 token_objects_(GrowableObjectArray::null()), |
105 token_objects_map_(Array::null()), | 105 token_objects_map_(Array::null()), |
106 megamorphic_cache_table_(GrowableObjectArray::null()), | 106 megamorphic_cache_table_(GrowableObjectArray::null()), |
107 megamorphic_miss_code_(Code::null()), | 107 megamorphic_miss_code_(Code::null()), |
108 megamorphic_miss_function_(Function::null()) { | 108 megamorphic_miss_function_(Function::null()), |
| 109 obfuscation_map_(Array::null()) { |
109 for (RawObject** current = from(); current <= to(); current++) { | 110 for (RawObject** current = from(); current <= to(); current++) { |
110 ASSERT(*current == Object::null()); | 111 ASSERT(*current == Object::null()); |
111 } | 112 } |
112 } | 113 } |
113 | 114 |
114 ObjectStore::~ObjectStore() {} | 115 ObjectStore::~ObjectStore() {} |
115 | 116 |
116 void ObjectStore::VisitObjectPointers(ObjectPointerVisitor* visitor) { | 117 void ObjectStore::VisitObjectPointers(ObjectPointerVisitor* visitor) { |
117 ASSERT(visitor != NULL); | 118 ASSERT(visitor != NULL); |
118 visitor->VisitPointers(from(), to()); | 119 visitor->VisitPointers(from(), to()); |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 simple_instance_of_function_ = | 308 simple_instance_of_function_ = |
308 PrivateObjectLookup(Symbols::_simpleInstanceOf()); | 309 PrivateObjectLookup(Symbols::_simpleInstanceOf()); |
309 simple_instance_of_true_function_ = | 310 simple_instance_of_true_function_ = |
310 PrivateObjectLookup(Symbols::_simpleInstanceOfTrue()); | 311 PrivateObjectLookup(Symbols::_simpleInstanceOfTrue()); |
311 simple_instance_of_false_function_ = | 312 simple_instance_of_false_function_ = |
312 PrivateObjectLookup(Symbols::_simpleInstanceOfFalse()); | 313 PrivateObjectLookup(Symbols::_simpleInstanceOfFalse()); |
313 #endif | 314 #endif |
314 } | 315 } |
315 | 316 |
316 } // namespace dart | 317 } // namespace dart |
OLD | NEW |