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

Unified Diff: runtime/vm/native_message_handler.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/growable_array.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/native_message_handler.cc
===================================================================
--- runtime/vm/native_message_handler.cc (revision 10253)
+++ runtime/vm/native_message_handler.cc (working copy)
@@ -33,11 +33,11 @@
#endif
-static uint8_t* zone_allocator(
- uint8_t* ptr, intptr_t old_size, intptr_t new_size) {
+static uint8_t* zone_allocator(uint8_t* ptr,
+ intptr_t old_size,
+ intptr_t new_size) {
ApiZone* zone = ApiNativeScope::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/growable_array.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698