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

Unified Diff: src/parser.h

Issue 7374002: Refactor allocation policies. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 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 | « src/liveedit.cc ('k') | src/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.h
diff --git a/src/parser.h b/src/parser.h
index 9ce1026c9819ba78879bd7953c17fff1964059a0..a77d88f64dcbb1dc85f162f39de455e61c33857a 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -192,7 +192,7 @@ class BufferedZoneList {
void Add(T* value) {
if (last_ != NULL) {
if (list_ == NULL) {
- list_ = new ZoneList<T*>(initial_size);
+ list_ = ZoneList<T*>::New(ZONE, initial_size);
}
list_->Add(last_);
}
@@ -241,7 +241,7 @@ class BufferedZoneList {
ZoneList<T*>* GetList() {
if (list_ == NULL) {
- list_ = new ZoneList<T*>(initial_size);
+ list_ = ZoneList<T*>::New(ZONE, initial_size);
}
if (last_ != NULL) {
list_->Add(last_);
« no previous file with comments | « src/liveedit.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698