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

Unified Diff: runtime/vm/object.cc

Issue 1012333002: Keep zone cached in SnapshotReader to allow removing ZoneHandle(Isolate*) interface. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 44579)
+++ runtime/vm/object.cc (working copy)
@@ -6657,8 +6657,8 @@
void Function::RestoreICDataMap(
ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data) const {
- Isolate* isolate = Isolate::Current();
- const Array& saved_icd = Array::Handle(isolate, ic_data_array());
+ Zone* zone = Thread::Current()->zone();
+ const Array& saved_icd = Array::Handle(zone, ic_data_array());
if (saved_icd.Length() == 0) {
deopt_id_to_ic_data->Clear();
return;
@@ -6671,7 +6671,7 @@
(*deopt_id_to_ic_data)[i] = NULL;
}
for (intptr_t i = 0; i < saved_icd.Length(); i++) {
- ICData& icd = ICData::ZoneHandle(isolate);
+ ICData& icd = ICData::ZoneHandle(zone);
icd ^= saved_icd.At(i);
(*deopt_id_to_ic_data)[icd.deopt_id()] = &icd;
}
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698