Index: runtime/vm/zone.h |
diff --git a/runtime/vm/zone.h b/runtime/vm/zone.h |
index 76cfeef765fc75baf4aba0d999531326487ca4a0..66ce27202eeea7ca4f8af75eafd419bdabede658 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,11 @@ 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; |
+ template<typename T> friend class ApiGrowableArray; |
siva
2012/02/09 00:45:29
Why does ApiGrowableArray have to be a friend here
Søren Gjesse
2012/02/09 08:44:01
It does not, removed.
|
+ |
DISALLOW_IMPLICIT_CONSTRUCTORS(Zone); |
}; |