Home
last modified time | relevance | path

Searched refs:buffer_ (Results 1 – 13 of 13) sorted by relevance

/art/compiler/utils/x86/
Dassembler_x86.cc155 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in call()
162 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in call()
169 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in call()
178 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in call()
179 intptr_t call_start = buffer_.GetPosition(); in call()
183 DCHECK_EQ((buffer_.GetPosition() - call_start), kCallExternalLabelSize); in call()
188 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in pushl()
194 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in pushl()
201 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in pushl()
213 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in popl()
[all …]
Dassembler_x86.h270 : buffer_(allocator->Adapter(kArenaAllocAssembler)) {} in ConstantArea()
293 return buffer_.size() == 0; in IsEmpty()
297 return buffer_.size() * elem_size_; in GetSize()
301 return ArrayRef<const int32_t>(buffer_); in GetBuffer()
306 ArenaVector<int32_t> buffer_; variable
856 buffer_.Emit<uint8_t>(value); in EmitUint8()
860 buffer_.Emit<int32_t>(value); in EmitInt32()
866 buffer_.Emit<uint8_t>(0xC0 + (rm << 3) + reg); in EmitRegisterOperand()
874 buffer_.EmitFixup(fixup); in EmitFixup()
/art/compiler/utils/x86_64/
Dassembler_x86_64.cc161 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in call()
169 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in call()
177 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in call()
185 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in pushq()
192 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in pushq()
200 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in pushq()
213 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in popq()
220 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in popq()
228 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in movq()
245 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in movl()
[all …]
Dassembler_x86_64.h294 : buffer_(allocator->Adapter(kArenaAllocAssembler)) {} in ConstantArea()
317 return buffer_.size() * elem_size_; in GetSize()
321 return ArrayRef<const int32_t>(buffer_); in GetBuffer()
326 ArenaVector<int32_t> buffer_; variable
970 buffer_.Emit<uint8_t>(value); in EmitUint8()
974 buffer_.Emit<int32_t>(value); in EmitInt32()
988 buffer_.Emit<uint8_t>((0xC0 | (reg & 7)) + (rm << 3)); in EmitRegisterOperand()
996 buffer_.EmitFixup(fixup); in EmitFixup()
/art/compiler/utils/
Dassembler.h191 buffer_ = buffer; in EnsureCapacity()
203 buffer_->has_ensured_capacity_ = false; in ~EnsureCapacity()
211 AssemblerBuffer* buffer_;
214 int ComputeGap() { return buffer_->Capacity() - buffer_->Size(); } in ComputeGap()
361 virtual void FinalizeCode() { buffer_.EmitSlowPaths(this); } in FinalizeCode()
364 virtual size_t CodeSize() const { return buffer_.Size(); } in CodeSize()
365 virtual const uint8_t* CodeBufferBaseAddress() const { return buffer_.contents(); } in CodeBufferBaseAddress()
379 buffer_.FinalizeInstructions(region); in FinalizeInstructions()
397 return buffer_.GetAllocator(); in GetAllocator()
401 return &buffer_; in GetBuffer()
[all …]
/art/libartbase/base/
Dsystrace.h85 ATraceBegin(buffer_.str().c_str()); in ~ScopedTraceMessageHelper()
89 return buffer_; in stream()
93 std::ostringstream buffer_;
/art/runtime/hprof/
Dhprof.cc303 buffer_.reserve(reserve_size); in EndianOutputBuffered()
309 buffer_[offset + 0] = static_cast<uint8_t>((new_value >> 24) & 0xFF); in UpdateU4()
310 buffer_[offset + 1] = static_cast<uint8_t>((new_value >> 16) & 0xFF); in UpdateU4()
311 buffer_[offset + 2] = static_cast<uint8_t>((new_value >> 8) & 0xFF); in UpdateU4()
312 buffer_[offset + 3] = static_cast<uint8_t>((new_value >> 0) & 0xFF); in UpdateU4()
317 DCHECK_EQ(length_, buffer_.size()); in HandleU1List()
318 buffer_.insert(buffer_.end(), values, values + count); in HandleU1List()
322 DCHECK_EQ(length_, buffer_.size()); in HandleU1AsU2List()
325 buffer_.push_back(0); in HandleU1AsU2List()
329 buffer_.push_back(value); in HandleU1AsU2List()
[all …]
/art/tools/dexanalyze/
Ddexanalyze_bytecode.cc148 std::vector<uint8_t> buffer = std::move(buffer_); in ProcessDexFiles()
149 buffer_.clear(); in ProcessDexFiles()
520 << "Bytecode size " << code_item.InsnsSizeInBytes() << " -> " << buffer_.size(); in ProcessCodeItem()
527 const size_t buffer_start = buffer_.size(); in Add()
528 buffer_.push_back(opcode); in Add()
529 buffer_.insert(buffer_.end(), start + 1, start + 2 * inst.SizeInCodeUnits()); in Add()
531 ++instruction_freq_[std::vector<uint8_t>(buffer_.begin() + buffer_start, buffer_.end())]; in Add()
580 const size_t buffer_start = buffer_.size(); in InstNibbles()
581 buffer_.push_back(opcode); in InstNibbles()
583 buffer_.push_back(args[i] << 4); in InstNibbles()
[all …]
Ddexanalyze_bytecode.h93 std::vector<uint8_t> buffer_; variable
/art/libelffile/stream/
Dbuffered_output_stream.cc45 memcpy(&buffer_[used_], src, byte_count); in WriteFully()
57 success = out_->WriteFully(&buffer_[0], used_); in FlushBuffer()
Dbuffered_output_stream.h46 uint8_t buffer_[kBufferSize]; variable
/art/compiler/utils/mips/
Dassembler_mips.cc57 CHECK_EQ(ds_fsm_target_pc_ + sizeof(uint32_t), buffer_.Size()); in DsFsmInstr()
77 CHECK_EQ(ds_fsm_target_pc_ + 2 * sizeof(uint32_t), buffer_.Size()); in DsFsmInstr()
95 ds_fsm_target_pc_ = buffer_.Size(); in DsFsmLabel()
100 CHECK_EQ(ds_fsm_target_pc_, buffer_.Size()); in DsFsmLabel()
103 CHECK_EQ(ds_fsm_target_pc_ + sizeof(uint32_t), buffer_.Size()); in DsFsmLabel()
105 ds_fsm_target_pc_ = buffer_.Size(); in DsFsmLabel()
139 size_t size = buffer_.Size(); in CodePosition()
246 buffer_.Store<uint32_t>(overwrite_location_, value); in Emit()
250 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in Emit()
251 buffer_.Emit<uint32_t>(value); in Emit()
[all …]
/art/compiler/utils/mips64/
Dassembler_mips64.cc90 buffer_.Store<uint32_t>(overwrite_location_, value); in Emit()
94 AssemblerBuffer::EnsureCapacity ensured(&buffer_); in Emit()
95 buffer_.Emit<uint32_t>(value); in Emit()
2814 uint32_t bound_pc = buffer_.Size(); in Bind()
2826 uint32_t prev = buffer_.Load<uint32_t>(branch_location); in Bind()
2899 branches_.emplace_back(buffer_.Size(), target, /* is_call= */ false, is_bare); in Buncond()
2914 branches_.emplace_back(is_r6, buffer_.Size(), target, condition, lhs, rhs, is_bare); in Bcond()
2920 branches_.emplace_back(buffer_.Size(), target, /* is_call= */ true, is_bare); in Call()
2927 branches_.emplace_back(buffer_.Size(), dest_reg, Branch::kLabel); in LoadLabelAddress()
2967 branches_.emplace_back(buffer_.Size(), dest_reg, literal_type); in LoadLiteral()
[all …]