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

Unified Diff: runtime/lib/isolate.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, 5 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 | « no previous file | runtime/lib/regexp_jsc.cc » ('j') | runtime/vm/allocation.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/isolate.cc
===================================================================
--- runtime/lib/isolate.cc (revision 10080)
+++ runtime/lib/isolate.cc (working copy)
@@ -251,8 +251,7 @@
static char* BuildMainName(const char* class_name) {
intptr_t len = OS::SNPrint(NULL, 0, "%s.main", class_name) + 1;
- char* chars = reinterpret_cast<char*>(
- Isolate::Current()->current_zone()->Allocate(len));
+ char* chars = Isolate::Current()->current_zone()->Alloc<char>(len);
OS::SNPrint(chars, len, "%s.main", class_name);
return chars;
}
« no previous file with comments | « no previous file | runtime/lib/regexp_jsc.cc » ('j') | runtime/vm/allocation.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698