| 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 4743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5521 thread_->isolate()->SetupImagePage(data_buffer_, | 5520 thread_->isolate()->SetupImagePage(data_buffer_, |
| 5522 /* is_executable */ false); | 5521 /* is_executable */ false); |
| 5523 } | 5522 } |
| 5524 | 5523 |
| 5525 deserializer.ReadIsolateSnapshot(thread_->isolate()->object_store()); | 5524 deserializer.ReadIsolateSnapshot(thread_->isolate()->object_store()); |
| 5526 | 5525 |
| 5527 return ApiError::null(); | 5526 return ApiError::null(); |
| 5528 } | 5527 } |
| 5529 | 5528 |
| 5530 } // namespace dart | 5529 } // namespace dart |
| OLD | NEW |