OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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/clustered_snapshot.h" | 5 #include "vm/clustered_snapshot.h" |
6 | 6 |
7 #include "platform/assert.h" | 7 #include "platform/assert.h" |
8 #include "vm/bootstrap.h" | 8 #include "vm/bootstrap.h" |
9 #include "vm/class_finalizer.h" | 9 #include "vm/class_finalizer.h" |
10 #include "vm/dart.h" | 10 #include "vm/dart.h" |
(...skipping 4742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4753 AddBaseObject(Object::sentinel().raw()); | 4753 AddBaseObject(Object::sentinel().raw()); |
4754 AddBaseObject(Object::transition_sentinel().raw()); | 4754 AddBaseObject(Object::transition_sentinel().raw()); |
4755 AddBaseObject(Object::empty_array().raw()); | 4755 AddBaseObject(Object::empty_array().raw()); |
4756 AddBaseObject(Object::zero_array().raw()); | 4756 AddBaseObject(Object::zero_array().raw()); |
4757 AddBaseObject(Object::dynamic_type().raw()); | 4757 AddBaseObject(Object::dynamic_type().raw()); |
4758 AddBaseObject(Object::void_type().raw()); | 4758 AddBaseObject(Object::void_type().raw()); |
4759 AddBaseObject(Bool::True().raw()); | 4759 AddBaseObject(Bool::True().raw()); |
4760 AddBaseObject(Bool::False().raw()); | 4760 AddBaseObject(Bool::False().raw()); |
4761 AddBaseObject(Object::extractor_parameter_types().raw()); | 4761 AddBaseObject(Object::extractor_parameter_types().raw()); |
4762 AddBaseObject(Object::extractor_parameter_names().raw()); | 4762 AddBaseObject(Object::extractor_parameter_names().raw()); |
| 4763 AddBaseObject(Object::empty_context().raw()); |
4763 AddBaseObject(Object::empty_context_scope().raw()); | 4764 AddBaseObject(Object::empty_context_scope().raw()); |
4764 AddBaseObject(Object::empty_descriptors().raw()); | 4765 AddBaseObject(Object::empty_descriptors().raw()); |
4765 AddBaseObject(Object::empty_var_descriptors().raw()); | 4766 AddBaseObject(Object::empty_var_descriptors().raw()); |
4766 AddBaseObject(Object::empty_exception_handlers().raw()); | 4767 AddBaseObject(Object::empty_exception_handlers().raw()); |
4767 | 4768 |
4768 for (intptr_t i = 0; i < ArgumentsDescriptor::kCachedDescriptorCount; i++) { | 4769 for (intptr_t i = 0; i < ArgumentsDescriptor::kCachedDescriptorCount; i++) { |
4769 AddBaseObject(ArgumentsDescriptor::cached_args_descriptors_[i]); | 4770 AddBaseObject(ArgumentsDescriptor::cached_args_descriptors_[i]); |
4770 } | 4771 } |
4771 for (intptr_t i = 0; i < ICData::kCachedICDataArrayCount; i++) { | 4772 for (intptr_t i = 0; i < ICData::kCachedICDataArrayCount; i++) { |
4772 AddBaseObject(ICData::cached_icdata_arrays_[i]); | 4773 AddBaseObject(ICData::cached_icdata_arrays_[i]); |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5151 AddBaseObject(Object::sentinel().raw()); | 5152 AddBaseObject(Object::sentinel().raw()); |
5152 AddBaseObject(Object::transition_sentinel().raw()); | 5153 AddBaseObject(Object::transition_sentinel().raw()); |
5153 AddBaseObject(Object::empty_array().raw()); | 5154 AddBaseObject(Object::empty_array().raw()); |
5154 AddBaseObject(Object::zero_array().raw()); | 5155 AddBaseObject(Object::zero_array().raw()); |
5155 AddBaseObject(Object::dynamic_type().raw()); | 5156 AddBaseObject(Object::dynamic_type().raw()); |
5156 AddBaseObject(Object::void_type().raw()); | 5157 AddBaseObject(Object::void_type().raw()); |
5157 AddBaseObject(Bool::True().raw()); | 5158 AddBaseObject(Bool::True().raw()); |
5158 AddBaseObject(Bool::False().raw()); | 5159 AddBaseObject(Bool::False().raw()); |
5159 AddBaseObject(Object::extractor_parameter_types().raw()); | 5160 AddBaseObject(Object::extractor_parameter_types().raw()); |
5160 AddBaseObject(Object::extractor_parameter_names().raw()); | 5161 AddBaseObject(Object::extractor_parameter_names().raw()); |
| 5162 AddBaseObject(Object::empty_context().raw()); |
5161 AddBaseObject(Object::empty_context_scope().raw()); | 5163 AddBaseObject(Object::empty_context_scope().raw()); |
5162 AddBaseObject(Object::empty_descriptors().raw()); | 5164 AddBaseObject(Object::empty_descriptors().raw()); |
5163 AddBaseObject(Object::empty_var_descriptors().raw()); | 5165 AddBaseObject(Object::empty_var_descriptors().raw()); |
5164 AddBaseObject(Object::empty_exception_handlers().raw()); | 5166 AddBaseObject(Object::empty_exception_handlers().raw()); |
5165 | 5167 |
5166 for (intptr_t i = 0; i < ArgumentsDescriptor::kCachedDescriptorCount; i++) { | 5168 for (intptr_t i = 0; i < ArgumentsDescriptor::kCachedDescriptorCount; i++) { |
5167 AddBaseObject(ArgumentsDescriptor::cached_args_descriptors_[i]); | 5169 AddBaseObject(ArgumentsDescriptor::cached_args_descriptors_[i]); |
5168 } | 5170 } |
5169 for (intptr_t i = 0; i < ICData::kCachedICDataArrayCount; i++) { | 5171 for (intptr_t i = 0; i < ICData::kCachedICDataArrayCount; i++) { |
5170 AddBaseObject(ICData::cached_icdata_arrays_[i]); | 5172 AddBaseObject(ICData::cached_icdata_arrays_[i]); |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5549 thread_->isolate()->SetupImagePage(data_buffer_, | 5551 thread_->isolate()->SetupImagePage(data_buffer_, |
5550 /* is_executable */ false); | 5552 /* is_executable */ false); |
5551 } | 5553 } |
5552 | 5554 |
5553 deserializer.ReadIsolateSnapshot(thread_->isolate()->object_store()); | 5555 deserializer.ReadIsolateSnapshot(thread_->isolate()->object_store()); |
5554 | 5556 |
5555 return ApiError::null(); | 5557 return ApiError::null(); |
5556 } | 5558 } |
5557 | 5559 |
5558 } // namespace dart | 5560 } // namespace dart |
OLD | NEW |