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

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

Issue 2983973002: Revert "Improve hashCode for closure objects" (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();
767 } 768 }
768 } 769 }
769 }; 770 };
770 771
771 #if !defined(DART_PRECOMPILED_RUNTIME) 772 #if !defined(DART_PRECOMPILED_RUNTIME)
772 class SignatureDataSerializationCluster : public SerializationCluster { 773 class SignatureDataSerializationCluster : public SerializationCluster {
773 public: 774 public:
774 SignatureDataSerializationCluster() {} 775 SignatureDataSerializationCluster() {}
775 virtual ~SignatureDataSerializationCluster() {} 776 virtual ~SignatureDataSerializationCluster() {}
776 777
(...skipping 4752 matching lines...) Expand 10 before | Expand all | Expand 10 after
5529 thread_->isolate()->SetupImagePage(data_buffer_, 5530 thread_->isolate()->SetupImagePage(data_buffer_,
5530 /* is_executable */ false); 5531 /* is_executable */ false);
5531 } 5532 }
5532 5533
5533 deserializer.ReadIsolateSnapshot(thread_->isolate()->object_store()); 5534 deserializer.ReadIsolateSnapshot(thread_->isolate()->object_store());
5534 5535
5535 return ApiError::null(); 5536 return ApiError::null();
5536 } 5537 }
5537 5538
5538 } // namespace dart 5539 } // 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