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

Unified Diff: src/zone-inl.h

Issue 6771058: Support placement new syntax for zone objects and start using it in the parser. (Closed)
Patch Set: Update RegExpBuilder Created 9 years, 9 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
« src/parser.cc ('K') | « src/zone.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/zone-inl.h
diff --git a/src/zone-inl.h b/src/zone-inl.h
index 516fc4aac5896e86a9e7e728e4800fe66ec4162d..17e83dc5ff496c9f79d9a82bb5fca9d36a7d7f22 100644
--- a/src/zone-inl.h
+++ b/src/zone-inl.h
@@ -97,6 +97,10 @@ void* ZoneObject::operator new(size_t size) {
return ZONE->New(static_cast<int>(size));
}
+void* ZoneObject::operator new(size_t size, Zone* zone) {
+ return zone->New(static_cast<int>(size));
+}
+
inline void* ZoneListAllocationPolicy::New(int size) {
return ZONE->New(size);
« src/parser.cc ('K') | « src/zone.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698