/art/compiler/ |
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 | 26 bool BufferedOutputStream::WriteFully(const void* buffer, size_t byte_count) { argument 29 return out_->WriteFully(buffer, byte_count); 37 const uint8_t* src = reinterpret_cast<const uint8_t*>(buffer);
|
H A D | file_output_stream.h | 32 virtual bool WriteFully(const void* buffer, size_t byte_count);
|
H A D | vector_output_stream.h | 34 bool WriteFully(const void* buffer, size_t byte_count) { argument 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 | 35 virtual bool WriteFully(const void* buffer, size_t byte_count);
|
H A D | output_stream.h | 44 virtual bool WriteFully(const void* buffer, size_t byte_count) = 0;
|
H A D | elf_writer_quick.h | 39 std::vector<uint8_t>* buffer);
|
H A D | elf_writer_quick.cc | 75 std::vector<uint8_t>* buffer) { 76 buffer->reserve(buffer->size() + locations.size() * 2); // guess 2 bytes per ULEB128. 80 EncodeUnsignedLeb128(buffer, dchecked_integral_cast<uint32_t>(location - address)); 115 // Patch memory addresses within a buffer. 121 std::vector<uint8_t>* buffer) { 124 auto* to_patch = reinterpret_cast<UnalignedAddress*>(buffer->data() + location); 74 EncodeOatPatches(const std::vector<uintptr_t>& locations, std::vector<uint8_t>* buffer) argument 119 Patch(const std::vector<uintptr_t>& patch_locations, Elf_Addr buffer_address, Elf_Addr base_address, std::vector<uint8_t>* buffer) argument
|
H A D | elf_builder.h | 129 std::vector<Elf_Dyn> buffer; variable 130 buffer.reserve(dynamics_.size() + 1u); 134 buffer.push_back( 137 buffer.push_back({it.tag_, {it.value_}}); 140 buffer.push_back({DT_NULL, {0}}); 141 return WriteArray(elf_file, buffer.data(), buffer.size()); 156 std::vector<uint8_t>* buffer); 158 // Section with content based on simple memory buffer. 159 // The buffer ca 199 SetBuffer(const std::vector<uint8_t>& buffer) argument 326 std::vector<Elf_Sym> buffer; variable [all...] |
/art/runtime/base/unix_file/ |
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]);
|
H A D | fd_file.h | 76 bool ReadFully(void* buffer, size_t byte_count) WARN_UNUSED; 77 bool PreadFully(void* buffer, size_t byte_count, size_t offset) WARN_UNUSED; 78 bool WriteFully(const void* buffer, size_t byte_count) WARN_UNUSED;
|
H A D | fd_file.cc | 187 static bool ReadFullyGeneric(int fd, void* buffer, size_t byte_count, size_t offset) { argument 188 char* ptr = static_cast<char*>(buffer); 197 ptr += bytes_read; // Move the buffer forward. 203 bool FdFile::ReadFully(void* buffer, size_t byte_count) { argument 204 return ReadFullyGeneric<ReadIgnoreOffset>(fd_, buffer, byte_count, 0); 207 bool FdFile::PreadFully(void* buffer, size_t byte_count, size_t offset) { argument 208 return ReadFullyGeneric<pread>(fd_, buffer, byte_count, offset); 211 bool FdFile::WriteFully(const void* buffer, size_t byte_count) { argument 212 const char* ptr = static_cast<const char*>(buffer); 220 ptr += bytes_written; // Move the buffer forwar [all...] |
/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"; 63 std::ostringstream buffer; local 66 buffer << "Block " << block->GetBlockId() << std::endl; 69 DumpBitVector(live_in, buffer, ssa_values, " live in: "); 71 DumpBitVector(live_out, buffer, ssa_values, " live out: "); 73 DumpBitVector(kill, buffer, ssa_value 34 DumpBitVector(BitVector* vector, std::ostream& buffer, size_t count, const char* prefix) argument [all...] |
/art/compiler/utils/ |
H A D | assembler.h | 204 // Move the contents of the buffer from oldposition to 251 // To emit an instruction to the assembler buffer, the EnsureCapacity helper 255 // AssemblerBuffer buffer; 256 // AssemblerBuffer::EnsureCapacity ensured(&buffer); 263 explicit EnsureCapacity(AssemblerBuffer* buffer) { argument 264 if (buffer->cursor() >= buffer->limit()) { 265 buffer->ExtendCapacity(); 267 // In debug mode, we save the assembler buffer along with the gap 268 // size before we start emitting to the buffer 304 EnsureCapacity(AssemblerBuffer* buffer) argument 366 DebugFrameOpCodeWriterForAssembler(Assembler* buffer) argument [all...] |
H A D | assembler_test_base.h | 336 std::string WriteToFile(const std::vector<uint8_t>& buffer, std::string test_name) { argument 338 const char* data = reinterpret_cast<const char*>(buffer.data()); 340 s_out.write(data, buffer.size());
|
/art/runtime/base/ |
H A D | bit_vector.cc | 334 std::ostringstream buffer; local 335 DumpHelper(prefix, buffer); 336 os << buffer.str() << std::endl; 339 void BitVector::DumpHelper(const char* prefix, std::ostringstream& buffer) const { 342 buffer << prefix; 345 buffer << '('; 347 buffer << IsBitSet(i); 349 buffer << ')';
|
H A D | bit_vector.h | 245 * @brief Dump the bitvector into buffer in a 00101..01 format. 246 * @param buffer the ostringstream used to dump the bitvector into. 248 void DumpHelper(const char* prefix, std::ostringstream& buffer) const;
|
/art/compiler/utils/x86/ |
H A D | assembler_x86_test.cc | 25 AssemblerBuffer buffer; local 26 AssemblerBuffer::EnsureCapacity ensured(&buffer); 27 buffer.Emit<uint8_t>(0x42); 28 ASSERT_EQ(static_cast<size_t>(1), buffer.Size()); 29 buffer.Emit<int32_t>(42); 30 ASSERT_EQ(static_cast<size_t>(5), buffer.Size());
|
/art/compiler/dwarf/ |
H A D | writer.h | 120 void PushData(const std::vector<uint8_t, Allocator2>* buffer) { argument 121 data_->insert(data_->end(), buffer->begin(), buffer->end()); 162 explicit Writer(std::vector<uint8_t, Allocator>* buffer) : data_(buffer) { } argument
|
H A D | dwarf_test.h | 100 char buffer[1024]; local 102 while ((line = fgets(buffer, sizeof(buffer), output)) != nullptr) {
|
/art/compiler/dex/quick/x86/ |
H A D | quick_assemble_x86_test.cc | 156 std::vector<uint8_t> buffer(m2l->code_buffer_.begin(), m2l->code_buffer_.end()); 157 test_helper_->Driver(buffer, gcc_asm, test_name); 214 std::vector<uint8_t> buffer(m2l->code_buffer_.begin(), m2l->code_buffer_.end()); 215 test_helper_->Driver(buffer, gcc_asm, inst_string);
|
/art/runtime/jdwp/ |
H A D | jdwp_adb.cc | 140 char buffer[CMSG_SPACE(sizeof(int))]; member in union:art::JDWP::__anon105 153 msg.msg_control = cm_un.buffer; 154 msg.msg_controllen = sizeof(cm_un.buffer);
|
/art/runtime/native/ |
H A D | java_lang_String.cc | 84 jcharArray buffer, jint index) { 87 Handle<mirror::CharArray> char_array(hs.NewHandle(soa.Decode<mirror::CharArray*>(buffer))); 83 String_getCharsNoCheck(JNIEnv* env, jobject java_this, jint start, jint end, jcharArray buffer, jint index) argument
|
/art/runtime/hprof/ |
H A D | hprof.cc | 355 virtual void HandleFlush(const uint8_t* buffer ATTRIBUTE_UNUSED, size_t length ATTRIBUTE_UNUSED) { 375 void HandleFlush(const uint8_t* buffer, size_t length) OVERRIDE { 377 errors_ = !fp_->WriteFully(buffer, length); 395 void HandleFlush(const uint8_t* buffer, size_t length) OVERRIDE { 398 iov[0].iov_base = const_cast<void*>(reinterpret_cast<const void*>(buffer));
|
/art/compiler/utils/x86_64/ |
H A D | assembler_x86_64_test.cc | 30 AssemblerBuffer buffer; local 31 AssemblerBuffer::EnsureCapacity ensured(&buffer); 32 buffer.Emit<uint8_t>(0x42); 33 ASSERT_EQ(static_cast<size_t>(1), buffer.Size()); 34 buffer.Emit<int32_t>(42); 35 ASSERT_EQ(static_cast<size_t>(5), buffer.Size());
|