| Index: runtime/vm/zone.h
|
| diff --git a/runtime/vm/zone.h b/runtime/vm/zone.h
|
| index 76cfeef765fc75baf4aba0d999531326487ca4a0..6d05d7e8562828ccd1aac410bf437d7a01092a92 100644
|
| --- a/runtime/vm/zone.h
|
| +++ b/runtime/vm/zone.h
|
| @@ -91,6 +91,7 @@ class BaseZone {
|
|
|
| friend class Zone;
|
| friend class ApiZone;
|
| + template<typename T, typename B> friend class BaseGrowableArray;
|
| DISALLOW_COPY_AND_ASSIGN(BaseZone);
|
| };
|
|
|
| @@ -127,6 +128,8 @@ class Zone : public StackResource {
|
| void VisitObjectPointers(ObjectPointerVisitor* visitor);
|
|
|
| private:
|
| + BaseZone* GetBaseZone() { return &zone_; }
|
| +
|
| BaseZone zone_;
|
|
|
| // Structure for managing handles allocation.
|
| @@ -134,6 +137,10 @@ class Zone : public StackResource {
|
|
|
| // Used for chaining zones in order to allow unwinding of stacks.
|
| Zone* previous_;
|
| +
|
| + template<typename T> friend class GrowableArray;
|
| + template<typename T> friend class ZoneGrowableArray;
|
| +
|
| DISALLOW_IMPLICIT_CONSTRUCTORS(Zone);
|
| };
|
|
|
|
|