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

Unified Diff: runtime/lib/string.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/lib/regexp_jsc.cc ('k') | runtime/tests/vm/vm.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/string.cc
===================================================================
--- runtime/lib/string.cc (revision 10253)
+++ runtime/lib/string.cc (working copy)
@@ -20,8 +20,7 @@
// Unbox the array and determine the maximum element width.
bool is_one_byte_string = true;
bool is_two_byte_string = true;
- uint32_t* temp = reinterpret_cast<uint32_t*>(
- zone->Allocate(len * sizeof(uint32_t))); // NOLINT
+ uint32_t* temp = zone->Alloc<uint32_t>(len);
Smi& element = Smi::Handle();
for (intptr_t i = 0; i < len; i++) {
const Object& index_object = Object::Handle(a.At(i));
« no previous file with comments | « runtime/lib/regexp_jsc.cc ('k') | runtime/tests/vm/vm.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698