Index: src/zone-inl.h |
diff --git a/src/zone-inl.h b/src/zone-inl.h |
index 17e83dc5ff496c9f79d9a82bb5fca9d36a7d7f22..b9f9dbec9a673ce0c31d621f34a51092a926fa50 100644 |
--- a/src/zone-inl.h |
+++ b/src/zone-inl.h |
@@ -102,11 +102,23 @@ void* ZoneObject::operator new(size_t size, Zone* zone) { |
} |
-inline void* ZoneListAllocationPolicy::New(int size) { |
+void* ZoneListAllocationPolicy::New(int size) { |
return ZONE->New(size); |
} |
+template <typename T> |
+void* ZoneList<T>::operator new(size_t size) { |
+ return ZONE->New(static_cast<int>(size)); |
+} |
+ |
+ |
+template <typename T> |
+void* ZoneList<T>::operator new(size_t size, Zone* zone) { |
+ return zone->New(static_cast<int>(size)); |
+} |
+ |
+ |
ZoneScope::ZoneScope(ZoneScopeMode mode) |
: isolate_(Isolate::Current()), |
mode_(mode) { |