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

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

Issue 2988493002: Reapply "Improve hashCode for closure objects" with fixes. (Closed)
Patch Set: Created 3 years, 5 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 | « runtime/vm/bootstrap_nocore.cc ('k') | runtime/vm/dart_entry.h » ('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 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap_nocore.cc ('k') | runtime/vm/dart_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698