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

Unified Diff: runtime/vm/snapshot_test.cc

Issue 10836061: Change the zone allocation api. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/raw_object_snapshot.cc ('k') | runtime/vm/stack_frame_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot_test.cc
===================================================================
--- runtime/vm/snapshot_test.cc (revision 10253)
+++ runtime/vm/snapshot_test.cc (working copy)
@@ -49,8 +49,7 @@
static uint8_t* zone_allocator(
uint8_t* ptr, intptr_t old_size, intptr_t new_size) {
Zone* zone = Isolate::Current()->current_zone();
- return reinterpret_cast<uint8_t*>(
- zone->Reallocate(reinterpret_cast<uword>(ptr), old_size, new_size));
+ return zone->Realloc<uint8_t>(ptr, old_size, new_size);
}
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/stack_frame_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698