/art/compiler/utils/x86/ |
H A D | assembler_x86_test.cc | 24 AssemblerBuffer buffer; local 25 AssemblerBuffer::EnsureCapacity ensured(&buffer); 26 buffer.Emit<uint8_t>(0x42); 27 ASSERT_EQ(static_cast<size_t>(1), buffer.Size()); 28 buffer.Emit<int32_t>(42); 29 ASSERT_EQ(static_cast<size_t>(5), buffer.Size());
|
/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 | 34 virtual bool WriteFully(const void* buffer, size_t byte_count);
|
H A D | output_stream.h | 45 virtual bool WriteFully(const void* buffer, size_t byte_count) = 0;
|
H A D | elf_writer_quick.h | 54 void ReservePatchSpace(std::vector<uint8_t>* buffer, bool debug);
|
/art/runtime/base/ |
H A D | bit_vector.cc | 398 std::ostringstream buffer; local 399 DumpHelper(prefix, buffer); 400 os << buffer.str() << std::endl; 404 void BitVector::DumpDotHelper(bool last_entry, FILE* file, std::ostringstream& buffer) const { 406 fprintf(file, " {%s}", buffer.str().c_str()); 418 std::ostringstream buffer; local 419 DumpHelper(prefix, buffer); 420 DumpDotHelper(last_entry, file, buffer); 424 std::ostringstream buffer; local 425 DumpIndicesHelper(prefix, buffer); [all...] |
H A D | bit_vector.h | 225 * @brief Dump the bitvector into buffer in a 00101..01 format. 226 * @param buffer the ostringstream used to dump the bitvector into. 228 void DumpHelper(const char* prefix, std::ostringstream& buffer) const; 232 * @param buffer the ostringstream used to dump the bitvector into. 234 void DumpIndicesHelper(const char* prefix, std::ostringstream& buffer) const; 238 * @param buffer the ostringstream used to dump the bitvector into. 240 void DumpDotHelper(bool last_entry, FILE* file, std::ostringstream& buffer) const;
|
H A D | logging.cc | 138 data_->buffer << ": " << strerror(data_->error); 140 std::string msg(data_->buffer.str());
|
H A D | logging.h | 195 std::ostringstream buffer; member in struct:art::LogMessageData 214 return data_->buffer;
|
/art/compiler/optimizing/ |
H A D | liveness_test.cc | 31 std::ostream& buffer, 34 buffer << prefix; 35 buffer << '('; 37 buffer << vector->IsBitSet(i); 39 buffer << ")\n"; 56 std::ostringstream buffer; local 59 buffer << "Block " << block->GetBlockId() << std::endl; 62 DumpBitVector(live_in, buffer, ssa_values, " live in: "); 64 DumpBitVector(live_out, buffer, ssa_values, " live out: "); 66 DumpBitVector(kill, buffer, ssa_value 30 DumpBitVector(BitVector* vector, std::ostream& buffer, size_t count, const char* prefix) argument [all...] |
H A D | code_generator.cc | 64 uint8_t* buffer = allocator->Allocate(code_size); local 65 MemoryRegion code(buffer, code_size); 90 uint8_t* buffer = allocator->Allocate(code_size); local 91 MemoryRegion code(buffer, code_size);
|
/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));
|
H A D | fd_file.h | 76 bool ReadFully(void* buffer, size_t byte_count) WARN_UNUSED; 77 bool WriteFully(const void* buffer, size_t byte_count) WARN_UNUSED;
|
H A D | fd_file.cc | 181 bool FdFile::ReadFully(void* buffer, size_t byte_count) { argument 182 char* ptr = static_cast<char*>(buffer); 191 ptr += bytes_read; // Move the buffer forward. 196 bool FdFile::WriteFully(const void* buffer, size_t byte_count) { argument 197 const char* ptr = static_cast<const char*>(buffer); 205 ptr += bytes_written; // Move the buffer forward.
|
H A D | mapped_file_test.cc | 142 StringFile buffer; local 143 ASSERT_TRUE(CopyFile(new_file, &buffer)); 144 EXPECT_EQ(kContent, buffer.ToStringPiece());
|
/art/compiler/utils/ |
H A D | assembler.h | 198 // Move the contents of the buffer from oldposition to 245 // To emit an instruction to the assembler buffer, the EnsureCapacity helper 249 // AssemblerBuffer buffer; 250 // AssemblerBuffer::EnsureCapacity ensured(&buffer); 257 explicit EnsureCapacity(AssemblerBuffer* buffer) { argument 258 if (buffer->cursor() >= buffer->limit()) { 259 buffer->ExtendCapacity(); 261 // In debug mode, we save the assembler buffer along with the gap 262 // size before we start emitting to the buffer 298 EnsureCapacity(AssemblerBuffer* buffer) argument [all...] |
H A D | assembler_test.h | 511 std::string WriteToFile(std::vector<uint8_t>& buffer, std::string test_name) { argument 513 const char* data = reinterpret_cast<char*>(buffer.data()); 515 s_out.write(data, buffer.size());
|
/art/compiler/utils/x86_64/ |
H A D | assembler_x86_64_test.cc | 24 AssemblerBuffer buffer; local 25 AssemblerBuffer::EnsureCapacity ensured(&buffer); 26 buffer.Emit<uint8_t>(0x42); 27 ASSERT_EQ(static_cast<size_t>(1), buffer.Size()); 28 buffer.Emit<int32_t>(42); 29 ASSERT_EQ(static_cast<size_t>(5), buffer.Size());
|
/art/runtime/jdwp/ |
H A D | jdwp_adb.cc | 140 char buffer[CMSG_SPACE(sizeof(int))]; member in union:art::JDWP::__anon98 153 msg.msg_control = cm_un.buffer; 154 msg.msg_controllen = sizeof(cm_un.buffer);
|
/art/test/004-JniTest/ |
H A D | jni_test.cc | 163 std::vector<uint8_t> buffer(1); 164 jobject byte_buffer = env->NewDirectByteBuffer(&buffer[0], 0); 168 assert(env->GetDirectBufferAddress(byte_buffer) == &buffer[0]);
|
/art/runtime/ |
H A D | jni_internal_test.cc | 599 /* AIOOBE for buffer overrun. */ \ 605 /* It's okay for the buffer to be nullptr as long as the length is 0. */ \ 611 /* It's okay for the buffer to be nullptr as long as the length is 0. */ \ 1123 // It's okay for the buffer to be nullptr as long as the length is 0. 1145 // It's okay for the buffer to be nullptr as long as the length is 0. 1609 jobject buffer = env_->NewDirectByteBuffer(bytes, sizeof(bytes)); local 1610 ASSERT_NE(buffer, nullptr); 1611 ASSERT_TRUE(env_->IsInstanceOf(buffer, buffer_class)); 1612 ASSERT_EQ(env_->GetDirectBufferAddress(buffer), bytes); 1613 ASSERT_EQ(env_->GetDirectBufferCapacity(buffer), static_cas [all...] |
/art/dex2oat/ |
H A D | dex2oat.cc | 1663 std::unique_ptr<uint8_t> buffer(new uint8_t[buffer_size]); 1665 int bytes_read = TEMP_FAILURE_RETRY(read(in->Fd(), buffer.get(), buffer_size)); 1669 bool write_ok = out->WriteFully(buffer.get(), bytes_read);
|