/external/webkit/WebCore/platform/text/ |
D | CString.cpp | 49 m_buffer = CStringBuffer::create(length + 1); in init() 50 memcpy(m_buffer->mutableData(), str, length); in init() 51 m_buffer->mutableData()[length] = '\0'; in init() 56 return m_buffer ? m_buffer->data() : 0; in data() 62 if (!m_buffer) in mutableData() 64 return m_buffer->mutableData(); in mutableData() 69 return m_buffer ? m_buffer->length() - 1 : 0; in length() 75 result.m_buffer = CStringBuffer::create(length + 1); in newUninitialized() 76 char* bytes = result.m_buffer->mutableData(); in newUninitialized() 84 if (!m_buffer || m_buffer->hasOneRef()) in copyBufferIfNeeded() [all …]
|
D | CString.h | 59 CString(CStringBuffer* buffer) : m_buffer(buffer) { } in CString() 66 bool isNull() const { return !m_buffer; } in isNull() 68 CStringBuffer* buffer() const { return m_buffer.get(); } in buffer() 73 RefPtr<CStringBuffer> m_buffer; variable
|
/external/webkit/JavaScriptCore/assembler/ |
D | AssemblerBuffer.h | 45 : m_buffer(m_inlineBuffer) in AssemblerBuffer() 53 if (m_buffer != m_inlineBuffer) in ~AssemblerBuffer() 54 fastFree(m_buffer); in ~AssemblerBuffer() 71 m_buffer[m_size] = value; in putByteUnchecked() 85 *reinterpret_cast<short*>(&m_buffer[m_size]) = value; in putShortUnchecked() 99 *reinterpret_cast<int*>(&m_buffer[m_size]) = value; in putIntUnchecked() 106 *reinterpret_cast<int64_t*>(&m_buffer[m_size]) = value; in putInt64Unchecked() 119 return m_buffer; in data() 139 return memcpy(result, m_buffer, m_size); in executableCopy() 148 memcpy(m_buffer + m_size, data, size); in append() [all …]
|
D | X86Assembler.h | 1625 m_buffer.putByte(pre); in prefix() 1644 m_buffer.ensureSpace(maxInstructionSize); in oneByteOp() 1645 m_buffer.putByteUnchecked(opcode); in oneByteOp() 1650 m_buffer.ensureSpace(maxInstructionSize); in oneByteOp() 1652 m_buffer.putByteUnchecked(opcode + (reg & 7)); in oneByteOp() 1657 m_buffer.ensureSpace(maxInstructionSize); in oneByteOp() 1659 m_buffer.putByteUnchecked(opcode); in oneByteOp() 1665 m_buffer.ensureSpace(maxInstructionSize); in oneByteOp() 1667 m_buffer.putByteUnchecked(opcode); in oneByteOp() 1673 m_buffer.ensureSpace(maxInstructionSize); in oneByteOp_disp32() [all …]
|
D | ARMAssembler.h | 227 m_buffer.putInt(op | RN(rn) | RD(rd) | op2); in emitInst() 367 m_buffer.putInt(static_cast<ARMWord>(cc) | MUL | RN(rd) | RS(rn) | RM(rm)); 372 m_buffer.putInt(static_cast<ARMWord>(cc) | MUL | SET_CC | RN(rd) | RS(rn) | RM(rm)); 377 … m_buffer.putInt(static_cast<ARMWord>(cc) | MULL | RN(rdhi) | RD(rdlo) | RS(rn) | RM(rm)); 402 …m_buffer.putIntWithConstantInt(static_cast<ARMWord>(cc) | DTR | DT_LOAD | DT_UP | RN(ARM::pc) | RD… 407 …m_buffer.putIntWithConstantInt(static_cast<ARMWord>(cc) | DTR | DT_LOAD | DT_UP | RN(ARM::pc) | RD… 465 m_buffer.putInt(cc | DTR | DT_WB | RN(ARM::sp) | RD(reg) | 0x4); 471 m_buffer.putInt(cc | (DTR ^ DT_PRE) | DT_LOAD | DT_UP | RN(ARM::sp) | RD(reg) | 0x4); 496 m_buffer.putInt(static_cast<ARMWord>(cc) | FMSTAT); 502 m_buffer.putInt(static_cast<ARMWord>(cc) | CLZ | RD(rd) | RM(rm)); [all …]
|
/external/webkit/WebCore/loader/ |
D | TextDocument.cpp | 53 if ((m_dest - m_buffer) > m_size - len) { in checkBuffer() 56 int oldOffset = m_dest - m_buffer; in checkBuffer() 57 m_buffer = static_cast<UChar*>(fastRealloc(m_buffer, newSize * sizeof(UChar))); in checkBuffer() 58 m_dest = m_buffer + oldOffset; in checkBuffer() 70 UChar* m_buffer; member in WebCore::TextTokenizer 81 m_buffer = static_cast<UChar*>(fastMalloc(sizeof(UChar) * m_size)); in TextTokenizer() 82 m_dest = m_buffer; in TextTokenizer() 93 m_buffer = static_cast<UChar*>(fastMalloc(sizeof(UChar) * m_size)); in TextTokenizer() 94 m_dest = m_buffer; in TextTokenizer() 100 ASSERT(!m_buffer); in ~TextTokenizer() [all …]
|
D | TextResourceDecoder.cpp | 419 size_t bufferLength = m_buffer.size(); in checkForBOM() 423 const unsigned char* buf1 = reinterpret_cast<const unsigned char*>(m_buffer.data()); in checkForBOM() 463 size_t oldSize = m_buffer.size(); in checkForCSSCharset() 464 m_buffer.grow(oldSize + len); in checkForCSSCharset() 465 memcpy(m_buffer.data() + oldSize, data, len); in checkForCSSCharset() 469 if (m_buffer.size() > 8) { // strlen("@charset") == 8 in checkForCSSCharset() 470 const char* dataStart = m_buffer.data(); in checkForCSSCharset() 471 const char* dataEnd = dataStart + m_buffer.size(); in checkForCSSCharset() 549 size_t oldSize = m_buffer.size(); in checkForHeadCharset() 550 m_buffer.grow(oldSize + len); in checkForHeadCharset() [all …]
|
D | FTPDirectoryDocument.cpp | 67 if ((m_dest - m_buffer) > m_size - len) { in checkBuffer() 70 int oldOffset = m_dest - m_buffer; in checkBuffer() 71 m_buffer = static_cast<UChar*>(fastRealloc(m_buffer, newSize * sizeof(UChar))); in checkBuffer() 72 m_dest = m_buffer + oldOffset; in checkBuffer() 95 UChar* m_buffer; member in WebCore::FTPDirectoryTokenizer 108 , m_buffer(static_cast<UChar*>(fastMalloc(sizeof(UChar) * m_size))) in FTPDirectoryTokenizer() 109 , m_dest(m_buffer) in FTPDirectoryTokenizer() 419 m_dest = m_buffer; in write() 446 m_dest = m_buffer; in write() 450 UChar* start = m_buffer; in write() [all …]
|
/external/webkit/JavaScriptCore/wtf/ |
D | Deque.h | 61 …size_t size() const { return m_start <= m_end ? m_end - m_start : m_end + m_buffer.capacity() - m_… in size() 73 T& first() { ASSERT(m_start != m_end); return m_buffer.buffer()[m_start]; } in first() 74 const T& first() const { ASSERT(m_start != m_end); return m_buffer.buffer()[m_start]; } in first() 104 Buffer m_buffer; variable 259 if (!m_buffer.capacity()) { in checkValidity() 263 ASSERT(m_start < m_buffer.capacity()); in checkValidity() 264 ASSERT(m_end < m_buffer.capacity()); in checkValidity() 271 ASSERT(index <= m_buffer.capacity()); in checkIndexValidity() 309 , m_buffer(other.m_buffer.capacity()) in Deque() 314 const T* otherBuffer = other.m_buffer.buffer(); in Deque() [all …]
|
D | Vector.h | 278 m_buffer = static_cast<T*>(fastMalloc(newCapacity * sizeof(T))); 283 if (m_buffer == bufferToDeallocate) { 284 m_buffer = 0; 290 T* buffer() { return m_buffer; } 291 const T* buffer() const { return m_buffer; } 292 T** bufferSlot() { return &m_buffer; } 297 T* buffer = m_buffer; 298 m_buffer = 0; 305 : m_buffer(0) 311 : m_buffer(buffer) [all …]
|
/external/webkit/WebKit/win/ |
D | MemoryStream.cpp | 37 , m_buffer(buffer) in MemoryStream() 96 if (!m_buffer) in Read() 99 if (m_pos >= m_buffer->size()) in Read() 102 if (m_pos + cb < m_buffer->size()) in Read() 105 *pcbRead = (ULONG) (m_buffer->size() - m_pos); in Read() 107 memcpy(pv, m_buffer->data() + m_pos, *pcbRead); in Read() 129 if (!m_buffer) in Seek() 142 if (dlibMove.LowPart > (m_buffer->size() - m_pos)) in Seek() 157 if (lowPartNeg > m_buffer->size()) in Seek() 159 proposedPos = m_buffer->size() - lowPartNeg; in Seek() [all …]
|
/external/webkit/JavaScriptCore/runtime/ |
D | ArgList.h | 52 m_buffer = m_vector.data(); in MarkedArgumentBuffer() 58 : m_buffer(buffer) in MarkedArgumentBuffer() 73 m_buffer = buffer; in initialize() 92 return m_buffer[i].jsValue(); in at() 99 m_buffer = 0; in clear() 129 return m_buffer[m_size - 1].jsValue(); in last() 132 iterator begin() { return m_buffer; } in begin() 133 iterator end() { return m_buffer + m_size; } in end() 135 const_iterator begin() const { return m_buffer; } in begin() 136 const_iterator end() const { return m_buffer + m_size; } in end() [all …]
|
/external/webkit/JavaScriptCore/interpreter/ |
D | RegisterFile.h | 149 Register* m_buffer; variable 168 , m_buffer(0) in RegisterFile() 177 …m_buffer = static_cast<Register*>(mmap(0, bufferLength, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON… in RegisterFile() 178 if (m_buffer == MAP_FAILED) { in RegisterFile() 187 …m_buffer = static_cast<Register*>(VirtualAlloc(0, roundUpAllocationSize(bufferLength, commitSize),… in RegisterFile() 188 if (!m_buffer) { in RegisterFile() 197 void* commitCheck = VirtualAlloc(m_buffer, committedSize, MEM_COMMIT, PAGE_READWRITE); in RegisterFile() 198 if (commitCheck != m_buffer) { in RegisterFile() 206 … m_commitEnd = reinterpret_cast<Register*>(reinterpret_cast<char*>(m_buffer) + committedSize); in RegisterFile() 210 m_start = m_buffer + maxGlobals; in RegisterFile()
|
/external/webkit/WebCore/platform/ |
D | SharedBuffer.cpp | 39 m_buffer.append(data, size); in SharedBuffer() 44 m_buffer.append(data, size); in SharedBuffer() 54 buffer->m_buffer.swap(vector); in adoptVector() 74 return m_buffer.size(); in size() 85 return m_buffer.data(); in data() 94 m_buffer.append(data, len); in append() 101 m_buffer.clear(); in clear()
|
/external/webkit/WebKitTools/DumpRenderTree/cairo/ |
D | PixelDumpSupportCairo.h | 56 if (m_buffer) in ~BitmapContext() 58 DeleteObject(m_buffer); in ~BitmapContext() 60 free(m_buffer); in ~BitmapContext() 70 : m_buffer(buffer) in BitmapContext() 78 PlatformBitmapBuffer m_buffer; variable
|
/external/webkit/WebKitTools/DumpRenderTree/cg/ |
D | PixelDumpSupportCG.h | 59 if (m_buffer) in ~BitmapContext() 61 free(m_buffer); in ~BitmapContext() 63 DeleteObject(m_buffer); in ~BitmapContext() 72 : m_buffer(buffer) in BitmapContext() 77 PlatformBitmapBuffer m_buffer; variable
|
/external/webkit/WebCore/platform/image-decoders/bmp/ |
D | BMPImageReader.cpp | 41 , m_buffer(0) in BMPImageReader() 83 ASSERT(m_buffer); // Parent should set this before asking us to decode! in decodeBMP() 84 if (m_buffer->status() == RGBA32Buffer::FrameEmpty) { in decodeBMP() 85 if (!m_buffer->setSize(m_parent->size().width(), in decodeBMP() 88 m_buffer->setStatus(RGBA32Buffer::FramePartial); in decodeBMP() 92 m_buffer->setHasAlpha(false); in decodeBMP() 95 m_buffer->setRect(IntRect(IntPoint(), m_parent->size())); in decodeBMP() 114 if ((m_andMaskState == NotYetDecoded) && !m_buffer->hasAlpha()) { in decodeBMP() 128 m_buffer->setStatus(RGBA32Buffer::FrameComplete); in decodeBMP() 585 m_buffer->setHasAlpha(true); in processRLEData() [all …]
|
/external/webkit/WebCore/platform/qt/ |
D | SharedBufferQt.cpp | 44 result->m_buffer.resize(file.size()); in createWithContentsOfFile() 45 if (result->m_buffer.size() != file.size()) in createWithContentsOfFile() 48 file.read(result->m_buffer.data(), result->m_buffer.size()); in createWithContentsOfFile()
|
/external/webkit/WebCore/editing/ |
D | TextIterator.cpp | 78 Vector<UChar> m_buffer; member in WebCore::SearchBuffer 91 Vector<UChar> m_buffer; member in WebCore::SearchBuffer 1330 m_buffer.clear(); // toss any old buffer we built up in advance() 1353 if (m_buffer.isEmpty()) { in advance() 1365 if (m_buffer.isEmpty()) { in advance() 1367 m_buffer.append(m_previousText, m_previousLength); in advance() 1370 m_buffer.append(m_textIterator.characters(), m_textIterator.length()); in advance() 1378 if (!m_buffer.isEmpty()) in length() 1379 return m_buffer.size(); in length() 1387 if (!m_buffer.isEmpty()) in characters() [all …]
|
/external/webkit/WebCore/platform/graphics/opentype/ |
D | OpenTypeUtilities.h | 41 size_t size() const { return m_buffer.size(); } in size() 42 const uint8_t* data() const { return m_buffer.data(); } in data() 44 EOTPrefix* prefix() { return reinterpret_cast<EOTPrefix*>(m_buffer.data()); } in prefix() 50 Vector<uint8_t, 512> m_buffer;
|
/external/webkit/WebCore/platform/cf/ |
D | SharedBufferCF.cpp | 50 return CFDataCreate(0, reinterpret_cast<const UInt8*>(m_buffer.data()), m_buffer.size()); in createCFData() 79 ASSERT(m_buffer.size() == 0); in maybeTransferPlatformData() 81 m_buffer.append((const char*)CFDataGetBytePtr(m_cfData.get()), CFDataGetLength(m_cfData.get())); in maybeTransferPlatformData()
|
D | BinaryPropertyList.cpp | 385 UInt8* const m_buffer; member in WebCore::BinaryPropertyListSerializer 491 , m_buffer(client.buffer(m_bufferSize)) in BinaryPropertyListSerializer() 505 if (!m_buffer) in BinaryPropertyListSerializer() 509 m_currentByte = m_buffer + headerSize; in BinaryPropertyListSerializer() 510 m_currentAggregateBufferByte = m_buffer + m_offsetTableStart; in BinaryPropertyListSerializer() 513 ASSERT(m_currentAggregateBufferByte == m_buffer + m_offsetTableStart); in BinaryPropertyListSerializer() 514 ASSERT(m_currentByte == m_buffer + m_offsetTableStart); in BinaryPropertyListSerializer() 517 memcpy(m_buffer, "bplist00", headerSize); in BinaryPropertyListSerializer() 520 UInt8* trailer = m_buffer + m_bufferSize - trailerSize; in BinaryPropertyListSerializer() 592 return m_currentAggregateBufferByte - m_buffer; in writeArrayStart() [all …]
|
/external/webkit/WebCore/history/cf/ |
D | HistoryPropertyList.cpp | 47 , m_buffer(0) in HistoryPropertyListWriter() 53 ASSERT(!m_buffer); in buffer() 54 m_buffer = static_cast<UInt8*>(CFAllocatorAllocate(0, size, 0)); in buffer() 56 return m_buffer; in buffer() 61 UInt8* buffer = m_buffer; in releaseData() 64 m_buffer = 0; in releaseData()
|
/external/webkit/WebCore/platform/graphics/chromium/ |
D | FontCustomPlatformData.cpp | 203 : m_buffer(buffer) in RemoteFontStream() 222 return m_buffer->size(); in read() 229 if (!m_buffer->data() || !m_buffer->size()) in read() 231 size_t left = m_buffer->size() - m_offset; in read() 233 std::memcpy(buffer, m_buffer->data() + m_offset, toRead); in read() 239 RefPtr<SharedBuffer> m_buffer; member in WebCore::RemoteFontStream
|
/external/webkit/WebCore/html/ |
D | HTMLTokenizer.cpp | 161 , m_buffer(0) in HTMLTokenizer() 180 , m_buffer(0) in HTMLTokenizer() 198 : m_buffer(0) in HTMLTokenizer() 226 fastFree(m_buffer); in reset() 227 m_buffer = m_dest = 0; in reset() 253 m_buffer = static_cast<UChar*>(fastMalloc(sizeof(UChar) * 254)); in begin() 254 m_dest = m_buffer; in begin() 1155 m_dest = m_buffer; // ignore the previous part of this tag in parseTag() 1245 m_dest = m_buffer; in parseTag() 1280 m_dest = m_buffer; in parseTag() [all …]
|