Index: runtime/vm/allocation.h |
=================================================================== |
--- runtime/vm/allocation.h (revision 42919) |
+++ runtime/vm/allocation.h (working copy) |
@@ -97,6 +97,9 @@ |
// isolate. |
void* operator new(uword size, BaseIsolate* isolate); |
+ // Allocate the object in the given zone, which must be the current zone. |
+ void* operator new(uword size, Zone* zone); |
+ |
// Ideally, the delete operator should be protected instead of |
// public, but unfortunately the compiler sometimes synthesizes |
// (unused) destructors for classes derived from ZoneObject, which |