/external/v8/src/zone/ |
zone-segment.cc | 5 #include "src/zone/zone-segment.h" 10 void Segment::ZapContents() { 16 void Segment::ZapHeader() { 18 memset(this, kZapDeadByte, sizeof(Segment));
|
zone-segment.h | 12 // chained together forming a LIFO structure with the newest segment 21 class Segment { 28 Segment* next() const { return next_; } 29 void set_next(Segment* const next) { next_ = next; } 32 size_t capacity() const { return size_ - sizeof(Segment); } 34 Address start() const { return address(sizeof(Segment)); } 37 // Zap the contents of the segment (but not the header). 39 // Zaps the header and makes the segment unusable this way. 48 // Computes the address of the nth byte in this segment. 52 Segment* next_ [all...] |
accounting-allocator.h | 15 #include "src/zone/zone-segment.h" 31 // Gets an empty segment from the pool or creates a new one. 32 virtual Segment* GetSegment(size_t bytes); 35 virtual void ReturnSegment(Segment* memory); 43 // Configures the zone segment pool size limits so the pool does not 63 // Allocates a new segment. Returns nullptr on failed allocation. 64 Segment* AllocateSegment(size_t bytes); 65 void FreeSegment(Segment* memory); 67 // Returns a segment from the pool of at least the requested size. 68 Segment* GetSegmentFromPool(size_t requested_size) [all...] |
accounting-allocator.cc | 39 // The sum of the bytes of one segment of each size. 53 // full_size. If max_pool_size is no sum of segment sizes the actual pool 56 // TODO(heimbuef): Determine better strategy generating a segment sizes 72 Segment* AccountingAllocator::GetSegment(size_t bytes) { 73 Segment* result = GetSegmentFromPool(bytes); 84 Segment* AccountingAllocator::AllocateSegment(size_t bytes) { 94 return reinterpret_cast<Segment*>(memory); 97 void AccountingAllocator::ReturnSegment(Segment* segment) { 98 segment->ZapContents() 137 Segment* segment; local [all...] |
/external/okhttp/okio/okio/src/main/java/okio/ |
SegmentPool.java | 28 static Segment next; 36 static Segment take() { 39 Segment result = next; 42 byteCount -= Segment.SIZE; 46 return new Segment(); // Pool is empty. Don't zero-fill while holding a lock. 49 static void recycle(Segment segment) { 50 if (segment.next != null || segment.prev != null) throw new IllegalArgumentException(); 51 if (segment.shared) return; // This segment cannot be recycled [all...] |
Segment.java | 19 * A segment of a buffer. 21 * <p>Each segment in a buffer is a circularly-linked list node referencing the following and 24 * <p>Each segment in the pool is a singly-linked list node referencing the rest of segments in the 28 * segment's byte array is shared the segment may not be recycled, nor may its byte data be changed. 29 * The lone exception is that the owner segment is allowed to append to the segment, writing data at 30 * {@code limit} and beyond. There is a single owning segment for each byte array. Positions, 33 final class Segment { 39 /** The next byte of application data byte to read in this segment. * [all...] |
/external/valgrind/drd/ |
drd_segment.h | 30 * Segments and segment lists. A segment represents information about 32 * clock associated with each segment. 42 typedef struct segment struct 44 struct segment* g_next; 45 struct segment* g_prev; 47 struct segment* thr_next; 48 struct segment* thr_prev; 50 /** Reference count: number of pointers that point to this segment. */ 52 /** Stack trace of the first instruction of the segment. * [all...] |
/toolchain/binutils/binutils-2.27/ld/testsuite/ld-elf/ |
dynamic1.d | 6 Section to Segment mapping: 7 Segment Sections...
|
nobits-1.d | 7 Section to Segment mapping: 8 Segment Sections...
|
note-1.d | 7 Section to Segment mapping: 8 Segment Sections...
|
seg.d | 9 # On MIPS, the first segment is for .reginfo. 15 Section to Segment mapping: 16 Segment Sections... 18 # On MIPS, the first segment is for .reginfo.
|
/device/linaro/bootloader/edk2/Vlv2DeviceRefCodePkg/ValleyView2Soc/NorthCluster/Include/ |
VlvCommonDefinitions.h | 118 #define MmPciAddress( Segment, Bus, Device, Function, Register ) \
130 #define MmPci64Ptr( Segment, Bus, Device, Function, Register ) \
131 ( (volatile UINT64 *)MmPciAddress( Segment, Bus, Device, Function, Register ) )
133 #define MmPci64( Segment, Bus, Device, Function, Register ) \
134 *MmPci64Ptr( Segment, Bus, Device, Function, Register )
136 #define MmPci64Or( Segment, Bus, Device, Function, Register, OrData ) \
137 MmPci64( Segment, Bus, Device, Function, Register ) = \
139 MmPci64( Segment, Bus, Device, Function, Register ) | \
143 #define MmPci64And( Segment, Bus, Device, Function, Register, AndData ) \
144 MmPci64( Segment, Bus, Device, Function, Register ) = \ [all...] |
/device/linaro/bootloader/edk2/Vlv2DeviceRefCodePkg/ValleyView2Soc/SouthCluster/Include/ |
PchCommonDefinitions.h | 105 #define PchPciDeviceMmAddress(Segment, Bus, Device, Function, Register) \
114 #define PchMmPci32Ptr(Segment, Bus, Device, Function, Register) \
115 ((volatile UINT32 *) PchPciDeviceMmAddress (Segment, Bus, Device, Function, Register))
117 #define PchMmPci32(Segment, Bus, Device, Function, Register) *PchMmPci32Ptr (Segment, Bus, Device, Function, Register)
119 #define PchMmPci32Or(Segment, Bus, Device, Function, Register, OrData) \
121 Segment, \
126 ) = (UINT32) (PchMmPci32 (Segment, Bus, Device, Function, Register) | (UINT32) (OrData))
128 #define PchMmPci32And(Segment, Bus, Device, Function, Register, AndData) \
130 Segment, \
[all...] |
/device/linaro/bootloader/edk2/Vlv2TbltDevicePkg/Include/ |
Mcfg.h | 75 EFI_ACPI_MEMORY_MAPPED_ENHANCED_CONFIGURATION_BASE_ADDRESS_STRUCTURE Segment[
|
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/pie/ |
Segment.java | 21 public class Segment implements Series<Number> { 27 public Segment(String title, Number value) {
|
/external/pdfium/core/fxcrt/ |
fx_bidi.h | 24 struct Segment { 27 Direction direction; // Segment direction. 34 // existing direction to indicate there is a segment to process. 39 // Returns true if there is still a segment to process. 43 // information about the segment to process. 44 Segment GetSegmentInfo() const { return m_LastSegment; } 49 Segment m_CurrentSegment; 50 Segment m_LastSegment; 55 using const_iterator = std::vector<CFX_BidiChar::Segment>::const_iterator; 75 std::vector<CFX_BidiChar::Segment> m_Order [all...] |
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkNorthCluster/Include/ |
QNCCommonDefinitions.h | 244 #define QNCMmPciAddress( Segment, Bus, Device, Function, Register ) \
265 #define QNCMmPci32Ptr( Segment, Bus, Device, Function, Register ) \
266 ( (volatile UINT32 *)QNCMmPciAddress( Segment, Bus, Device, Function, Register ) )
268 #define QNCMmPci32( Segment, Bus, Device, Function, Register ) \
269 *QNCMmPci32Ptr( Segment, Bus, Device, Function, Register )
271 #define QNCMmPci32Or( Segment, Bus, Device, Function, Register, OrData ) \
272 QNCMmPci32( Segment, Bus, Device, Function, Register ) = \
274 QNCMmPci32( Segment, Bus, Device, Function, Register ) | \
278 #define QNCMmPci32And( Segment, Bus, Device, Function, Register, AndData ) \
279 QNCMmPci32( Segment, Bus, Device, Function, Register ) = \ [all...] |
/device/linaro/bootloader/edk2/QuarkSocPkg/QuarkSouthCluster/Include/ |
IohCommonDefinitions.h | 246 #define IohMmPciAddress( Segment, Bus, Device, Function, Register ) \
257 #define IohMmPci32Ptr( Segment, Bus, Device, Function, Register ) \
258 ( (volatile UINT32 *)IohMmPciAddress( Segment, Bus, Device, Function, Register ) )
260 #define IohMmPci32( Segment, Bus, Device, Function, Register ) \
261 *IohMmPci32Ptr( Segment, Bus, Device, Function, Register )
263 #define IohMmPci32Or( Segment, Bus, Device, Function, Register, OrData ) \
264 IohMmPci32( Segment, Bus, Device, Function, Register ) = \
266 IohMmPci32( Segment, Bus, Device, Function, Register ) | \
270 #define IohMmPci32And( Segment, Bus, Device, Function, Register, AndData ) \
271 IohMmPci32( Segment, Bus, Device, Function, Register ) = \ [all...] |
/external/okhttp/okio/okio/src/test/java/okio/ |
RealBufferedSourceTest.java | 36 source.writeUtf8(repeat('b', Segment.SIZE)); 41 assertEquals(Segment.SIZE + 2, source.size()); 43 // Reading one byte buffers a full segment. 45 assertEquals(Segment.SIZE - 1, in.available()); 48 // Reading as much as possible reads the rest of that buffered segment. 49 byte[] data = new byte[Segment.SIZE * 2]; 50 assertEquals(Segment.SIZE - 1, in.read(data, 0, data.length)); 51 assertEquals(repeat('b', Segment.SIZE - 1), new String(data, 0, Segment.SIZE - 1, UTF_8)); 54 // Continuing to read buffers the next segment [all...] |
BufferTest.java | 64 buffer.writeUtf8(repeat('a', Segment.SIZE * 4)); 65 assertEquals(Segment.SIZE * 4, buffer.completeSegmentByteCount()); 70 buffer.writeUtf8(repeat('a', Segment.SIZE * 4 - 10)); 71 assertEquals(Segment.SIZE * 3, buffer.completeSegmentByteCount()); 141 int size = (Segment.SIZE / 2) - 1; 147 int size = (Segment.SIZE / 2) + 1; 153 int size = 3 * Segment.SIZE + 1; 155 assertEquals(asList(Segment.SIZE, Segment.SIZE, Segment.SIZE, 1 602 Buffer segment = new Buffer(); local [all...] |
RealBufferedSinkTest.java | 46 bufferedSink.writeUtf8(repeat('a', Segment.SIZE - 1)); 49 assertEquals(Segment.SIZE, sink.size()); 56 bufferedSink.writeUtf8(repeat('a', Segment.SIZE * 4 - 1)); 57 assertEquals(Segment.SIZE * 3, sink.size()); 58 assertEquals(Segment.SIZE - 1, bufferedSink.buffer().size()); 97 bufferedSink.writeUtf8(repeat('a', Segment.SIZE * 3)); 98 assertEquals(Segment.SIZE * 3, sink.size()); 104 bufferedSink.writeUtf8(repeat('a', Segment.SIZE * 3 - 1)); 105 assertEquals(Segment.SIZE * 2, sink.size()); 226 Buffer write1 = new Buffer().writeUtf8(TestUtil.repeat('a', Segment.SIZE)) [all...] |
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/ |
SimplePieChartActivity.java | 26 import com.androidplot.pie.Segment; 40 private Segment s1; 41 private Segment s2; 42 private Segment s3; 43 private Segment s4; 77 s1 = new Segment("s1", 10); 78 s2 = new Segment("s2", 1); 79 s3 = new Segment("s3", 10); 80 s4 = new Segment("s4", 10);
|
/frameworks/native/libs/gui/include/gui/ |
OccupancyTracker.h | 41 struct Segment : public Parcelable { 42 Segment() 48 Segment(nsecs_t _totalTime, size_t _numFrames, float _occupancyAverage, 62 // Average occupancy of the queue over this segment. (0.0, 1.0) implies 66 // Whether a third buffer was used at all during this segment (since a 67 // segment could read as double-buffered on average, but still require a 73 std::vector<Segment> getSegmentHistory(bool forceFlush); 95 std::deque<Segment> mSegmentHistory;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/common/layout/relative/ |
Match.java | 24 import com.android.ide.common.api.Segment; 29 public final Segment with; 32 public final Segment edge; 55 public Match(GuidelineHandler handler, Segment edge, Segment with,
|
/toolchain/binutils/binutils-2.27/ld/testsuite/ld-powerpc/ |
vle-multiseg-1.d | 11 Section to Segment mapping: 12 Segment Sections...
|