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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 ClosureData::InstanceSize(), is_vm_object); | 757 ClosureData::InstanceSize(), is_vm_object); |
758 if (d->kind() == Snapshot::kFullAOT) { | 758 if (d->kind() == Snapshot::kFullAOT) { |
759 data->ptr()->context_scope_ = ContextScope::null(); | 759 data->ptr()->context_scope_ = ContextScope::null(); |
760 } else { | 760 } else { |
761 data->ptr()->context_scope_ = | 761 data->ptr()->context_scope_ = |
762 static_cast<RawContextScope*>(d->ReadRef()); | 762 static_cast<RawContextScope*>(d->ReadRef()); |
763 } | 763 } |
764 data->ptr()->parent_function_ = static_cast<RawFunction*>(d->ReadRef()); | 764 data->ptr()->parent_function_ = static_cast<RawFunction*>(d->ReadRef()); |
765 data->ptr()->signature_type_ = static_cast<RawType*>(d->ReadRef()); | 765 data->ptr()->signature_type_ = static_cast<RawType*>(d->ReadRef()); |
766 data->ptr()->closure_ = static_cast<RawInstance*>(d->ReadRef()); | 766 data->ptr()->closure_ = static_cast<RawInstance*>(d->ReadRef()); |
767 data->ptr()->hash_ = Object::null(); | |
768 } | 767 } |
769 } | 768 } |
770 }; | 769 }; |
771 | 770 |
772 #if !defined(DART_PRECOMPILED_RUNTIME) | 771 #if !defined(DART_PRECOMPILED_RUNTIME) |
773 class SignatureDataSerializationCluster : public SerializationCluster { | 772 class SignatureDataSerializationCluster : public SerializationCluster { |
774 public: | 773 public: |
775 SignatureDataSerializationCluster() {} | 774 SignatureDataSerializationCluster() {} |
776 virtual ~SignatureDataSerializationCluster() {} | 775 virtual ~SignatureDataSerializationCluster() {} |
777 | 776 |
(...skipping 4752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5530 thread_->isolate()->SetupImagePage(data_buffer_, | 5529 thread_->isolate()->SetupImagePage(data_buffer_, |
5531 /* is_executable */ false); | 5530 /* is_executable */ false); |
5532 } | 5531 } |
5533 | 5532 |
5534 deserializer.ReadIsolateSnapshot(thread_->isolate()->object_store()); | 5533 deserializer.ReadIsolateSnapshot(thread_->isolate()->object_store()); |
5535 | 5534 |
5536 return ApiError::null(); | 5535 return ApiError::null(); |
5537 } | 5536 } |
5538 | 5537 |
5539 } // namespace dart | 5538 } // namespace dart |
OLD | NEW |