// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_ZONE_ZONE_SEGMENT_H_ #define V8_ZONE_ZONE_SEGMENT_H_ #include "src/init/v8.h" // Segments represent chunks of memory: They have starting address // (encoded in the this pointer) and a size in bytes. Segments are // chained together forming a LIFO structure with the newest segment // available as segment_head_. Segments are allocated using malloc() // and de-allocated using free(). namespace v8 { namespace internal { // Forward declarations. class AccountingAllocator; class Zone; class Segment { … }; } // namespace internal } // namespace v8 #endif // V8_ZONE_ZONE_SEGMENT_H_