| Index: src/zone.h
|
| diff --git a/src/zone.h b/src/zone.h
|
| index 9b38a6f5b92c0c3108dae0e054e355509e2e88f1..922cf8429e0ab50781a6ea587d9c3a75b4bbc477 100644
|
| --- a/src/zone.h
|
| +++ b/src/zone.h
|
| @@ -177,19 +177,17 @@ class ZoneList: public List<T, ZoneListAllocationPolicy> {
|
| // always zero. The capacity must be non-negative.
|
| explicit ZoneList(int capacity)
|
| : List<T, ZoneListAllocationPolicy>(capacity) { }
|
| +
|
| + // Construct a new ZoneList by copying the elements of the given ZoneList.
|
| + explicit ZoneList(const ZoneList<T>& other)
|
| + : List<T, ZoneListAllocationPolicy>(other.length()) {
|
| + AddAll(other);
|
| + }
|
| };
|
|
|
|
|
| -// A zone splay tree. The config type parameter encapsulates the
|
| -// different configurations of a concrete splay tree (see splay-tree.h).
|
| -// The tree itself and all its elements are allocated in the Zone.
|
| -template <typename Config>
|
| -class ZoneSplayTree: public SplayTree<Config, ZoneListAllocationPolicy> {
|
| - public:
|
| - ZoneSplayTree()
|
| - : SplayTree<Config, ZoneListAllocationPolicy>() {}
|
| - ~ZoneSplayTree();
|
| -};
|
| +// Introduce a convenience type for zone lists of map handles.
|
| +typedef ZoneList<Handle<Map> > ZoneMapList;
|
|
|
|
|
| // ZoneScopes keep track of the current parsing and compilation
|
| @@ -197,6 +195,7 @@ class ZoneSplayTree: public SplayTree<Config, ZoneListAllocationPolicy> {
|
| // outer-most scope.
|
| class ZoneScope BASE_EMBEDDED {
|
| public:
|
| + // TODO(isolates): pass isolate pointer here.
|
| inline explicit ZoneScope(ZoneScopeMode mode);
|
|
|
| virtual ~ZoneScope();
|
| @@ -217,6 +216,18 @@ class ZoneScope BASE_EMBEDDED {
|
| };
|
|
|
|
|
| +// A zone splay tree. The config type parameter encapsulates the
|
| +// different configurations of a concrete splay tree (see splay-tree.h).
|
| +// The tree itself and all its elements are allocated in the Zone.
|
| +template <typename Config>
|
| +class ZoneSplayTree: public SplayTree<Config, ZoneListAllocationPolicy> {
|
| + public:
|
| + ZoneSplayTree()
|
| + : SplayTree<Config, ZoneListAllocationPolicy>() {}
|
| + ~ZoneSplayTree();
|
| +};
|
| +
|
| +
|
| } } // namespace v8::internal
|
|
|
| #endif // V8_ZONE_H_
|
|
|