diff options
Diffstat (limited to 'deps/v8/src/zone.h')
-rw-r--r-- | deps/v8/src/zone.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/v8/src/zone.h b/deps/v8/src/zone.h index 3397356223..dde722f675 100644 --- a/deps/v8/src/zone.h +++ b/deps/v8/src/zone.h @@ -169,9 +169,19 @@ 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); + } }; +// Introduce a convenience type for zone lists of map handles. +typedef ZoneList<Handle<Map> > ZoneMapList; + + // ZoneScopes keep track of the current parsing and compilation // nesting and cleans up generated ASTs in the Zone when exiting the // outer-most scope. |