/art/compiler/linker/ |
H A D | file_output_stream.cc | 28 bool FileOutputStream::WriteFully(const void* buffer, size_t byte_count) { argument 29 return file_->WriteFully(buffer, byte_count);
|
H A D | buffered_output_stream.cc | 32 bool BufferedOutputStream::WriteFully(const void* buffer, size_t byte_count) { argument 37 return out_->WriteFully(buffer, byte_count); 44 const uint8_t* src = reinterpret_cast<const uint8_t*>(buffer);
|
H A D | file_output_stream.h | 32 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE;
|
H A D | vector_output_stream.h | 34 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE { 36 const uint8_t* start = reinterpret_cast<const uint8_t*>(buffer); 42 memcpy(&(*vector_)[offset_], buffer, byte_count);
|
H A D | buffered_output_stream.h | 34 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE;
|
H A D | error_delaying_output_stream.h | 37 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE { 39 if (!output_->WriteFully(buffer, byte_count)) {
|
H A D | output_stream.h | 44 virtual bool WriteFully(const void* buffer, size_t byte_count) = 0;
|
/art/compiler/debug/ |
H A D | elf_gnu_debugdata_writer.h | 56 const uint8_t* buffer = reinterpret_cast<const uint8_t*>(buf); local 57 ctx->dst_->insert(ctx->dst_->end(), buffer, buffer + size); 86 std::vector<uint8_t> buffer; local 87 buffer.reserve(KB); 88 VectorOutputStream out("Mini-debug-info ELF file", &buffer); 103 compressed_buffer.reserve(buffer.size() / 4); 104 XzCompress(&buffer, &compressed_buffer);
|
H A D | elf_debug_frame_writer.h | 34 std::vector<uint8_t>* buffer) { 61 WriteCIE(is64bit, return_reg, opcodes, format, buffer); 84 WriteCIE(is64bit, return_reg, opcodes, format, buffer); 108 WriteCIE(is64bit, return_reg, opcodes, format, buffer); 134 WriteCIE(is64bit, return_reg, opcodes, format, buffer); 160 WriteCIE(is64bit, return_reg, opcodes, format, buffer); 219 std::vector<uint8_t> buffer; // Small temporary buffer. local 220 WriteCIE(builder->GetIsa(), format, &buffer); 221 cfi_section->WriteFully(buffer 32 WriteCIE(InstructionSet isa, dwarf::CFIFormat format, std::vector<uint8_t>* buffer) argument 249 std::vector<uint8_t> buffer; local [all...] |
H A D | elf_debug_writer.cc | 117 std::vector<uint8_t> buffer; local 118 buffer.reserve(KB); 119 VectorOutputStream out("Debug ELF file", &buffer); 129 return buffer; 149 std::vector<uint8_t> buffer; local 150 buffer.reserve(KB); 151 VectorOutputStream out("Debug ELF file", &buffer); 163 return buffer;
|
H A D | elf_debug_line_writer.h | 265 std::vector<uint8_t> buffer; local 266 buffer.reserve(opcodes.data()->size() + KB); 268 WriteDebugLineTable(directories, files, opcodes, offset, &buffer, &debug_line_patches_); 269 builder_->GetDebugLine()->WriteFully(buffer.data(), buffer.size()); 270 return buffer.size();
|
/art/runtime/base/unix_file/ |
H A D | fd_file.cc | 213 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) { argument 214 char* ptr = static_cast<char*>(buffer); 223 ptr += bytes_read; // Move the buffer forward. 229 bool FdFile::ReadFully(void* buffer, size_t byte_count) { argument 230 return ReadFullyGeneric<ReadIgnoreOffset>(fd_, buffer, byte_count, 0); 233 bool FdFile::PreadFully(void* buffer, size_t byte_count, size_t offset) { argument 234 return ReadFullyGeneric<pread>(fd_, buffer, byte_count, offset); 238 bool FdFile::WriteFullyGeneric(const void* buffer, size_t byte_count, size_t offset) { argument 242 const char* ptr = static_cast<const char*>(buffer); 251 ptr += bytes_written; // Move the buffer forwar 257 PwriteFully(const void* buffer, size_t byte_count, size_t offset) argument 261 WriteFully(const void* buffer, size_t byte_count) argument [all...] |
H A D | fd_file.h | 79 bool ReadFully(void* buffer, size_t byte_count) WARN_UNUSED; 80 bool PreadFully(void* buffer, size_t byte_count, size_t offset) WARN_UNUSED; 81 bool WriteFully(const void* buffer, size_t byte_count) WARN_UNUSED; 82 bool PwriteFully(const void* buffer, size_t byte_count, size_t offset) WARN_UNUSED; 124 bool WriteFullyGeneric(const void* buffer, size_t byte_count, size_t offset);
|
H A D | fd_file_test.cc | 75 uint8_t buffer[16]; local 76 EXPECT_FALSE(file.ReadFully(&buffer, 4)); 106 char buffer[sizeof(read_suffix)]; local 107 EXPECT_TRUE(file.PreadFully(buffer, sizeof(read_suffix), offset)); 108 EXPECT_STREQ(&read_suffix[0], &buffer[0]);
|
/art/runtime/jit/ |
H A D | offline_profiling_info.cc | 141 static bool WriteBuffer(int fd, const uint8_t* buffer, size_t byte_count) { argument 143 int bytes_written = TEMP_FAILURE_RETRY(write(fd, buffer, byte_count)); 148 buffer += bytes_written; // Move the buffer forward. 153 // Add the string bytes to the buffer. 154 static void AddStringToBuffer(std::vector<uint8_t>* buffer, const std::string& value) { argument 155 buffer->insert(buffer->end(), value.begin(), value.end()); 158 // Insert each byte, from low to high into the buffer. 160 static void AddUintToBuffer(std::vector<uint8_t>* buffer, argument 186 std::vector<uint8_t> buffer; local 315 uint8_t buffer[1]; local 348 uint8_t* buffer = ptr_current_; local [all...] |
/art/compiler/debug/dwarf/ |
H A D | expression.h | 114 explicit Expression(std::vector<uint8_t>* buffer) : Writer<>(buffer) { argument 115 buffer->clear();
|
H A D | debug_abbrev_writer.h | 44 explicit DebugAbbrevWriter(Vector* buffer) argument 45 : Writer<Vector>(buffer), 46 current_abbrev_(buffer->get_allocator()) {
|
H A D | headers.h | 45 std::vector<uint8_t>* buffer) { 48 Writer<> writer(buffer); 87 uint64_t buffer_address, // Address of buffer in linked application. 88 std::vector<uint8_t>* buffer, 93 Writer<> writer(buffer); 97 uint32_t cie_pointer = (buffer_address + buffer->size()) - cie_address; 106 code_address -= buffer_address + buffer->size(); 110 patch_locations->push_back(buffer_address + buffer->size() - section_address); 41 WriteCIE(bool is64bit, Reg return_address_register, const DebugFrameOpCodeWriter<Vector>& opcodes, CFIFormat format, std::vector<uint8_t>* buffer) argument 80 WriteFDE(bool is64bit, uint64_t section_address, uint64_t cie_address, uint64_t code_address, uint64_t code_size, const ArrayRef<const uint8_t>& opcodes, CFIFormat format, uint64_t buffer_address, std::vector<uint8_t>* buffer, std::vector<uintptr_t>* patch_locations) argument
|
H A D | writer.h | 125 void PushData(const Vector* buffer) { argument 126 data_->insert(data_->end(), buffer->begin(), buffer->end()); 171 explicit Writer(Vector* buffer) : data_(buffer) { } argument
|
H A D | dwarf_test.h | 90 char buffer[1024]; local 92 while ((line = fgets(buffer, sizeof(buffer), output)) != nullptr) {
|
/art/compiler/optimizing/ |
H A D | liveness_test.cc | 35 std::ostream& buffer, 38 buffer << prefix; 39 buffer << '('; 41 buffer << vector->IsBitSet(i); 43 buffer << ")\n"; 58 std::ostringstream buffer; local 61 buffer << "Block " << block->GetBlockId() << std::endl; 64 DumpBitVector(live_in, buffer, ssa_values, " live in: "); 66 DumpBitVector(live_out, buffer, ssa_values, " live out: "); 68 DumpBitVector(kill, buffer, ssa_value 34 DumpBitVector(BitVector* vector, std::ostream& buffer, size_t count, const char* prefix) argument [all...] |
/art/runtime/base/ |
H A D | bit_vector.cc | 330 std::ostringstream buffer; local 331 DumpHelper(prefix, buffer); 332 os << buffer.str() << std::endl; 335 void BitVector::DumpHelper(const char* prefix, std::ostringstream& buffer) const { 338 buffer << prefix; 341 buffer << '('; 343 buffer << IsBitSet(i); 345 buffer << ')';
|
/art/compiler/utils/ |
H A D | assembler.h | 122 // Move a chunk of the buffer from oldposition to newposition. 168 // To emit an instruction to the assembler buffer, the EnsureCapacity helper 172 // AssemblerBuffer buffer; 173 // AssemblerBuffer::EnsureCapacity ensured(&buffer); 180 explicit EnsureCapacity(AssemblerBuffer* buffer) { argument 181 if (buffer->cursor() > buffer->limit()) { 182 buffer->ExtendCapacity(buffer->Size() + kMinimumGap); 184 // In debug mode, we save the assembler buffer alon 221 EnsureCapacity(AssemblerBuffer* buffer) argument 294 DebugFrameOpCodeWriterForAssembler(Assembler* buffer) argument [all...] |
/art/test/577-profile-foreign-dex/src/ |
H A D | Main.java | 146 byte[] buffer = new byte[4096]; 148 while ((bytesRead = in.read(buffer)) >= 0) { 149 out.write(buffer, 0, bytesRead);
|
/art/tools/ahat/src/ |
H A D | InstanceUtils.java | 136 byte[] buffer = getByteArrayField(inst, "mBuffer"); 137 if (buffer == null) { 146 (((int)buffer[i * 4 + 3] & 0xFF) << 24) + 147 (((int)buffer[i * 4 + 0] & 0xFF) << 16) + 148 (((int)buffer[i * 4 + 1] & 0xFF) << 8) + 149 ((int)buffer[i * 4 + 2] & 0xFF));
|