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

Unified Diff: runtime/vm/bitmap.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/bit_vector.h ('k') | runtime/vm/dart_api_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bitmap.cc
===================================================================
--- runtime/vm/bitmap.cc (revision 10253)
+++ runtime/vm/bitmap.cc (working copy)
@@ -21,8 +21,8 @@
while (!InRange(bit_offset)) {
intptr_t new_size = size_in_bytes_ + kIncrementSizeInBytes;
ASSERT(new_size > 0);
- uint8_t* new_bit_list = reinterpret_cast<uint8_t*>(
- Isolate::Current()->current_zone()->Allocate(new_size));
+ uint8_t* new_bit_list =
+ Isolate::Current()->current_zone()->Alloc<uint8_t>(new_size);
ASSERT(new_bit_list != NULL);
ASSERT(bit_list_ != NULL);
uint8_t* old_bit_list = bit_list_;
« no previous file with comments | « runtime/vm/bit_vector.h ('k') | runtime/vm/dart_api_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698