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

Unified Diff: runtime/vm/benchmark_test.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/lib/string.cc ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/benchmark_test.cc
===================================================================
--- runtime/vm/benchmark_test.cc (revision 44579)
+++ runtime/vm/benchmark_test.cc (working copy)
@@ -534,7 +534,8 @@
intptr_t buffer_len = writer.BytesWritten();
// Read object back from the snapshot.
- SnapshotReader reader(buffer, buffer_len, Snapshot::kMessage, isolate);
+ SnapshotReader reader(buffer, buffer_len, Snapshot::kMessage, isolate,
+ zone.GetZone());
reader.ReadObject();
}
timer.Stop();
@@ -557,7 +558,8 @@
intptr_t buffer_len = writer.BytesWritten();
// Read object back from the snapshot.
- SnapshotReader reader(buffer, buffer_len, Snapshot::kMessage, isolate);
+ SnapshotReader reader(buffer, buffer_len, Snapshot::kMessage, isolate,
+ zone.GetZone());
reader.ReadObject();
}
timer.Stop();
@@ -582,7 +584,8 @@
intptr_t buffer_len = writer.BytesWritten();
// Read object back from the snapshot.
- SnapshotReader reader(buffer, buffer_len, Snapshot::kMessage, isolate);
+ SnapshotReader reader(buffer, buffer_len, Snapshot::kMessage, isolate,
+ zone.GetZone());
reader.ReadObject();
free(buffer);
}
« no previous file with comments | « runtime/lib/string.cc ('k') | runtime/vm/code_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698