71 inline void*
New(
int size);
103 static const int kMinimumSegmentSize = 8 *
KB;
106 static const int kMaximumSegmentSize = 1 *
MB;
109 static const int kMaximumKeptSegmentSize = 64 *
KB;
112 int zone_excess_limit_;
117 int segment_bytes_allocated_;
130 void DeleteSegment(
Segment* segment,
int size);
150 INLINE(
void*
operator new(
size_t size,
Zone* zone));
170 INLINE(
void* New(
size_t size));
171 INLINE(
static void Delete(
void *pointer)) { }
190 INLINE(
void*
operator new(
size_t size,
Zone* zone));
239 virtual ~ZoneScope();
241 inline bool ShouldDeleteOnExit();
249 inline static int nesting();
260 template <
typename Config>
void InsertAt(int index, const T &element, AllocationPolicy allocator=AllocationPolicy())
INLINE(void *New(size_t size))
INLINE(static void Delete(void *pointer))
INLINE(void AddAll(const Vector< T > &other, Zone *zone))
INLINE(void *operator new(size_t size, Zone *zone))
INLINE(void InsertAt(int index, const T &element, Zone *zone))
INLINE(Vector< T > AddBlock(T value, int count, Zone *zone))
INLINE(void Allocate(int length, Zone *zone))
INLINE(void AddAll(const List< T, ZoneAllocationPolicy > &other, Zone *zone))
INLINE(void Add(const T &element, Zone *zone))
static unsigned allocation_size_
void adjust_segment_bytes_allocated(int delta)
ZoneList(const ZoneList< T > &other, Zone *zone)
#define T(name, string, precedence)
INLINE(void *operator new(size_t size, Zone *zone))
INLINE(static HeapObject *EnsureDoubleAligned(Heap *heap, HeapObject *object, int size))
void Add(const T &element, AllocationPolicy allocator=AllocationPolicy())
ZoneAllocationPolicy(Zone *zone)
TemplateHashMapImpl< ZoneAllocationPolicy > ZoneHashMap
INLINE(void Initialize(int capacity, Zone *zone))
Vector< T > AddBlock(T value, int count, AllocationPolicy allocator=AllocationPolicy())
void AddAll(const List< T, AllocationPolicy > &other, AllocationPolicy allocator=AllocationPolicy())
ZoneSplayTree(Zone *zone)
ZoneList(int capacity, Zone *zone)