Searched refs:buffer (Results 26 - 46 of 46) sorted by relevance

12

/art/compiler/utils/x86/
H A Dassembler_x86_test.cc28 AssemblerBuffer buffer(&arena);
29 AssemblerBuffer::EnsureCapacity ensured(&buffer);
30 buffer.Emit<uint8_t>(0x42);
31 ASSERT_EQ(static_cast<size_t>(1), buffer.Size());
32 buffer.Emit<int32_t>(42);
33 ASSERT_EQ(static_cast<size_t>(5), buffer.Size());
/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...]
H A Delf_writer_quick.cc112 std::vector<uint8_t>* buffer);
H A Doat_writer.cc71 bool WriteFully(const void* buffer, size_t byte_count) OVERRIDE {
72 oat_header_->UpdateChecksum(buffer, byte_count);
73 return out_->WriteFully(buffer, byte_count);
/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/arm/
H A Dassembler_thumb2.cc309 // Refill our data buffer with patched opcodes.
2123 void Thumb2Assembler::Fixup::Emit(AssemblerBuffer* buffer, uint32_t code_size) const { argument
2129 buffer->Store<int16_t>(location_, encoding);
2144 buffer->Store<int16_t>(location_, encoding >> 16);
2145 buffer->Store<int16_t>(location_ + 2u, static_cast<int16_t>(encoding & 0xffff));
2152 buffer->Store<int16_t>(location_, encoding);
2160 buffer->Store<int16_t>(location_, cmp_encoding);
2161 buffer->Store<int16_t>(location_ + 2, b_encoding);
2169 buffer->Store<int16_t>(location_, cmp_encoding);
2170 buffer
[all...]
H A Dassembler_thumb2.h406 // (the label is linked but not bound), the following links are stored in the code buffer,
608 // Emit the branch instruction into the assembler buffer. This does the
610 void Emit(AssemblerBuffer* buffer, uint32_t code_size) const;
654 uint32_t location_; // Offset into assembler buffer in bytes.
655 uint32_t target_; // Offset into assembler buffer in bytes.
/art/compiler/debug/
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/dex2oat/
H A Ddex2oat_test.cc176 char buffer[128]; local
178 while (fgets(buffer, 128, pipe) != nullptr) {
179 output_ += buffer;
H A Ddex2oat.cc1820 std::unique_ptr<uint8_t[]> buffer(new uint8_t[buffer_size]);
1822 int bytes_read = TEMP_FAILURE_RETRY(read(in->Fd(), buffer.get(), buffer_size));
1826 bool write_ok = out->WriteFully(buffer.get(), bytes_read);
/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/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)));
/art/compiler/linker/
H A Doutput_stream_test.cc109 bool WriteFully(const void* buffer ATTRIBUTE_UNUSED,
/art/compiler/utils/
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 Dutils.cc163 constexpr size_t kBufSize = 256; // Small buffer. Avoid stack overflow and stack size warnings.
170 // Print the rest of the buffer, if it exists.
1048 constexpr size_t kMaxBuffer = 128; // Relatively small buffer. Should be OK as we're on an
1050 char buffer[kMaxBuffer]; local
1052 if (fgets(buffer, kMaxBuffer, stream) != nullptr) {
1054 char* tmp = buffer;
1465 struct stat buffer; local
1466 return stat(filename.c_str(), &buffer) == 0;
1470 struct stat buffer; local
1471 if (stat(filename.c_str(), &buffer) !
[all...]
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/runtime/base/
H A Dbit_vector.h278 * @brief Dump the bitvector into buffer in a 00101..01 format.
279 * @param buffer the ostringstream used to dump the bitvector into.
281 void DumpHelper(const char* prefix, std::ostringstream& buffer) const;
/art/runtime/hprof/
H A Dhprof.cc363 virtual void HandleFlush(const uint8_t* buffer ATTRIBUTE_UNUSED, size_t length ATTRIBUTE_UNUSED) {
383 void HandleFlush(const uint8_t* buffer, size_t length) OVERRIDE {
385 errors_ = !fp_->WriteFully(buffer, length);
403 void HandleFlush(const uint8_t* buffer, size_t length) OVERRIDE {
406 iov[0].iov_base = const_cast<void*>(reinterpret_cast<const void*>(buffer));
/art/test/004-JniTest/
H A Djni_test.cc171 std::vector<uint8_t> buffer(1);
172 jobject byte_buffer = env->NewDirectByteBuffer(&buffer[0], 0);
176 CHECK_EQ(env->GetDirectBufferAddress(byte_buffer), &buffer[0]);
/art/compiler/utils/x86_64/
H A Dassembler_x86_64_test.cc32 AssemblerBuffer buffer(&arena);
33 AssemblerBuffer::EnsureCapacity ensured(&buffer);
34 buffer.Emit<uint8_t>(0x42);
35 ASSERT_EQ(static_cast<size_t>(1), buffer.Size());
36 buffer.Emit<int32_t>(42);
37 ASSERT_EQ(static_cast<size_t>(5), buffer.Size());
/art/compiler/optimizing/
H A Dcode_generator.cc261 uint8_t* buffer = allocator->Allocate(code_size); local
263 MemoryRegion code(buffer, code_size);

Completed in 1748 milliseconds

12