Searched defs:buffer (Results 1 - 25 of 27) sorted by relevance

12

/art/compiler/linker/
H A Dfile_output_stream.cc28 bool FileOutputStream::WriteFully(const void* buffer, size_t byte_count) { argument
29 return file_->WriteFully(buffer, byte_count);
H A Dbuffered_output_stream.cc32 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);
/art/compiler/debug/dwarf/
H A Ddebug_abbrev_writer.h44 explicit DebugAbbrevWriter(Vector* buffer) argument
45 : Writer<Vector>(buffer),
46 current_abbrev_(buffer->get_allocator()) {
H A Dexpression.h114 explicit Expression(std::vector<uint8_t>* buffer) : Writer<>(buffer) { argument
115 buffer->clear();
H A Ddwarf_test.h90 char buffer[1024]; local
92 while ((line = fgets(buffer, sizeof(buffer), output)) != nullptr) {
H A Dwriter.h125 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 Dheaders.h45 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
/art/compiler/optimizing/
H A Dliveness_test.cc35 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...]
H A Dcode_generator.cc261 uint8_t* buffer = allocator->Allocate(code_size); local
263 MemoryRegion code(buffer, code_size);
/art/runtime/base/unix_file/
H A Dfd_file_test.cc75 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 Dfd_file.cc213 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...]
/art/compiler/debug/
H A Delf_debug_frame_writer.h34 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 Delf_debug_writer.cc117 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 Delf_gnu_debugdata_writer.h56 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 Delf_debug_line_writer.h265 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();
H A Delf_debug_info_writer.h269 std::vector<uint8_t> buffer; local
270 buffer.reserve(info_.data()->size() + KB);
274 WriteDebugInfoCU(debug_abbrev_offset, info_, offset, &buffer, &owner_->debug_info_patches_);
275 owner_->builder_->GetDebugInfo()->WriteFully(buffer.data(), buffer.size());
434 std::vector<uint8_t> buffer; local
435 buffer.reserve(info_.data()->size() + KB);
439 WriteDebugInfoCU(debug_abbrev_offset, info_, offset, &buffer, &owner_->debug_info_patches_);
440 owner_->builder_->GetDebugInfo()->WriteFully(buffer.data(), buffer
[all...]
/art/runtime/jit/
H A Dprofile_compilation_info_test.cc248 uint8_t buffer[] = { 1, 2, 3, 4 }; local
249 ASSERT_TRUE(profile.GetFile()->WriteFully(buffer, sizeof(buffer)));
H A Doffline_profiling_info.cc141 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/runtime/native/
H A Djava_lang_String.cc84 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/base/
H A Dbit_vector.cc330 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/runtime/jdwp/
H A Djdwp_adb.cc140 char buffer[CMSG_SPACE(sizeof(int))]; member in union:art::JDWP::__anon99
153 msg.msg_control = cm_un.buffer;
154 msg.msg_controllen = sizeof(cm_un.buffer);
/art/compiler/utils/
H A Dassembler.h122 // 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...]
H A Dassembler_test_base.h348 std::string WriteToFile(const std::vector<uint8_t>& buffer, std::string test_name) { argument
350 const char* data = reinterpret_cast<const char*>(buffer.data());
352 s_out.write(data, buffer.size());
/art/runtime/
H A Djni_internal_test.cc1076 /* AIOOBE for buffer overrun. */ \
1088 /* It's okay for the buffer to be null as long as the length is 0. */ \
1094 /* It's okay for the buffer to be null as long as the length is 0. */ \
1529 // It's okay for the buffer to be null as long as the length is 0.
1554 // It's okay for the buffer to be null as long as the length is 0.
2108 jobject buffer = env_->NewDirectByteBuffer(bytes, sizeof(bytes)); local
2109 ASSERT_NE(buffer, nullptr);
2110 ASSERT_TRUE(env_->IsInstanceOf(buffer, buffer_class));
2111 ASSERT_EQ(env_->GetDirectBufferAddress(buffer), bytes);
2112 ASSERT_EQ(env_->GetDirectBufferCapacity(buffer), static_cas
[all...]
/art/compiler/
H A Delf_builder.h69 // In the cases where we need to buffer, we write the larger section first
70 // and buffer the smaller one (e.g. .strtab is bigger than .symtab).
198 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE {
201 return owner_->stream_.WriteFully(buffer, byte_count);
510 std::vector<uint8_t>* buffer) {
511 buffer->reserve(buffer->size() + locations.size() * 2); // guess 2 bytes per ULEB128.
515 EncodeUnsignedLeb128(buffer, dchecked_integral_cast<uint32_t>(location - address));
521 std::vector<uint8_t> buffer; local
522 EncodeOatPatches(patch_locations, &buffer);
509 EncodeOatPatches(const ArrayRef<const uintptr_t>& locations, std::vector<uint8_t>* buffer) argument
530 WriteSection(const char* name, const std::vector<uint8_t>* buffer) argument
[all...]

Completed in 328 milliseconds

12