Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Side by Side Diff: runtime/vm/clustered_snapshot.cc

Issue 2413113004: Fix wrong initialization of is_loaded in LibraryPrefix. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2806 matching lines...) Expand 10 before | Expand all | Expand 10 after
2817 Deserializer::InitializeHeader(prefix, kLibraryPrefixCid, 2817 Deserializer::InitializeHeader(prefix, kLibraryPrefixCid,
2818 LibraryPrefix::InstanceSize(), 2818 LibraryPrefix::InstanceSize(),
2819 is_vm_object); 2819 is_vm_object);
2820 RawObject** from = prefix->from(); 2820 RawObject** from = prefix->from();
2821 RawObject** to = prefix->to(); 2821 RawObject** to = prefix->to();
2822 for (RawObject** p = from; p <= to; p++) { 2822 for (RawObject** p = from; p <= to; p++) {
2823 *p = d->ReadRef(); 2823 *p = d->ReadRef();
2824 } 2824 }
2825 prefix->ptr()->num_imports_ = d->Read<uint16_t>(); 2825 prefix->ptr()->num_imports_ = d->Read<uint16_t>();
2826 prefix->ptr()->is_deferred_load_ = d->Read<bool>(); 2826 prefix->ptr()->is_deferred_load_ = d->Read<bool>();
2827 prefix->ptr()->is_loaded_ = false; 2827 prefix->ptr()->is_loaded_ = !prefix->ptr()->is_deferred_load_;
2828 } 2828 }
2829 } 2829 }
2830 }; 2830 };
2831 2831
2832 2832
2833 #if !defined(DART_PRECOMPILED_RUNTIME) 2833 #if !defined(DART_PRECOMPILED_RUNTIME)
2834 class TypeSerializationCluster : public SerializationCluster { 2834 class TypeSerializationCluster : public SerializationCluster {
2835 public: 2835 public:
2836 TypeSerializationCluster() { } 2836 TypeSerializationCluster() { }
2837 virtual ~TypeSerializationCluster() { } 2837 virtual ~TypeSerializationCluster() { }
(...skipping 2500 matching lines...) Expand 10 before | Expand all | Expand 10 after
5338 5338
5339 deserializer.ReadVMSnapshot(); 5339 deserializer.ReadVMSnapshot();
5340 5340
5341 Dart::set_instructions_snapshot_buffer(instructions_buffer_); 5341 Dart::set_instructions_snapshot_buffer(instructions_buffer_);
5342 Dart::set_data_snapshot_buffer(data_buffer_); 5342 Dart::set_data_snapshot_buffer(data_buffer_);
5343 5343
5344 return ApiError::null(); 5344 return ApiError::null();
5345 } 5345 }
5346 5346
5347 } // namespace dart 5347 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698