Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 15 of 15) sorted by relevance

/tools/dexter/slicer/
Dcode_ir.cc71 const dex::u1* ptr = in DissasembleTryBlocks() local
72 ir_code->catch_handlers.ptr<dex::u1>() + tryBlock.handler_off; in DissasembleTryBlocks()
73 int catchCount = dex::ReadSLeb128(&ptr); in DissasembleTryBlocks()
79 dex::u4 type_index = dex::ReadULeb128(&ptr); in DissasembleTryBlocks()
84 dex::u4 address = dex::ReadULeb128(&ptr); in DissasembleTryBlocks()
96 dex::u4 address = dex::ReadULeb128(&ptr); in DissasembleTryBlocks()
145 const dex::u1* ptr = ir_debug_info->data.ptr<dex::u1>(); in DissasembleDebugInfo() local
147 while ((opcode = *ptr++) != dex::DBG_END_SEQUENCE) { in DissasembleDebugInfo()
153 address += dex::ReadULeb128(&ptr); in DissasembleDebugInfo()
158 line += dex::ReadSLeb128(&ptr); in DissasembleDebugInfo()
[all …]
Dreader.cc31 header_ = ptr<dex::Header>(0); in Reader()
297 const dex::u1* ptr = reinterpret_cast<const dex::u1*>(dex_annotations + 1); in ExtractAnnotations() local
300 ir_annotations->field_annotations.push_back(ParseFieldAnnotation(&ptr)); in ExtractAnnotations()
304 ir_annotations->method_annotations.push_back(ParseMethodAnnotation(&ptr)); in ExtractAnnotations()
308 ir_annotations->param_annotations.push_back(ParseParamAnnotation(&ptr)); in ExtractAnnotations()
321 const dex::u1* ptr = dexAnnotationItem->annotation; in ExtractAnnotationItem() local
322 ir_annotation = ParseAnnotation(&ptr); in ExtractAnnotationItem()
601 auto ptr = dataPtr<dex::u1>(offset); in ExtractEncodedArray() local
602 ir_encoded_array = ParseEncodedArray(&ptr); in ExtractEncodedArray()
613 const dex::u1* ptr = dataPtr<dex::u1>(offset); in ExtractDebugInfo() local
[all …]
Dwriter.cc190 auto ptr = data.ptr<const dex::u1>(offset); in WriteEncodedValue()
193 SLICER_CHECK(memcmp(ptr, ir_value->original.ptr(), size) == 0); in WriteEncodedValue()
235 static u4 ReadU4(const u2* ptr) { return ptr[0] | (u4(ptr[1]) << 16); } in ReadU4() argument
237 static void WriteU4(u2* ptr, u4 val) { in WriteU4() argument
238 ptr[0] = val & 0xffff; in WriteU4()
239 ptr[1] = val >> 16; in WriteU4()
310 memcpy(header->magic, dex_ir_->magic.ptr(), dex_ir_->magic.size()); in CreateImage()
763 const dex::u1* src = ir_debug_info->data.ptr<dex::u1>(); in WriteDebugInfo()
826 dex::u2* ptr = dex_->code.ptr<dex::u2>(offset); in WriteInstructions() local
827 dex::u2* const end = ptr + instructions.size(); in WriteInstructions()
[all …]
Ddex_bytecode.cc139 static u4 FetchU4(const u2* ptr) { return ptr[0] | (u4(ptr[1]) << 16); } in FetchU4() argument
142 static u8 FetchU8(const u2* ptr) { in FetchU8() argument
143 return FetchU4(ptr) | (u8(FetchU4(ptr + 2)) << 32); in FetchU8()
Dbytecode_encoder.cc528 dex::u2* const begin = bytecode_.ptr<dex::u2>(0); in FixupSwitchOffsets()
530 dex::u2* ptr = begin; in FixupSwitchOffsets() local
531 while (ptr < end) { in FixupSwitchOffsets()
532 const auto opcode = dex::OpcodeFromBytecode(*ptr); in FixupSwitchOffsets()
533 const auto offset = ptr - begin; in FixupSwitchOffsets()
535 auto dex_instr = dex::DecodeInstruction(ptr); in FixupSwitchOffsets()
538 auto dex_instr = dex::DecodeInstruction(ptr); in FixupSwitchOffsets()
541 auto isize = dex::GetWidthFromBytecode(ptr); in FixupSwitchOffsets()
543 ptr += isize; in FixupSwitchOffsets()
545 SLICER_CHECK(ptr == end); in FixupSwitchOffsets()
[all …]
Dtryblocks_encoder.cc106 auto tries_ptr = tries_.ptr<const dex::TryBlock>(0); in Encode()
/tools/dexter/slicer/export/slicer/
Dmemview.h31 MemView(const void* ptr, size_t size) : ptr_(ptr), size_(size) { in MemView() argument
38 const T* ptr() const { in ptr() function
Darrayview.h34 ArrayView(T* ptr, size_t count) : begin_(ptr), end_(ptr + count) {} in ArrayView() argument
Dbuffer.h75 T* ptr(size_t offset) { in ptr() function
96 size_t Push(const void* ptr, size_t size) { in Push() argument
99 std::memcpy(buff_ + offset, ptr, size); in Push()
104 return Push(memView.ptr(), memView.size()); in Push()
Ddex_ir.h95 void operator delete(void* ptr) { in delete()
96 ::free(ptr); in delete()
99 void operator delete[](void* ptr) {
100 ::free(ptr);
166 const dex::u1* strData = data.ptr<dex::u1>(); in c_str()
Dreader.h106 const T* ptr(int offset) const { in ptr() function
122 return slicer::ArrayView<const T>(ptr<T>(offset), count); in section()
Dcode_ir.h435 void FixupPackedSwitch(PackedSwitchPayload* instr, dex::u4 base_offset, const dex::u2* ptr);
436 void FixupSparseSwitch(SparseSwitchPayload* instr, dex::u4 base_offset, const dex::u2* ptr);
440 ArrayData* DecodeArrayData(const dex::u2* ptr, dex::u4 offset);
441 Bytecode* DecodeBytecode(const dex::u2* ptr, dex::u4 offset);
Dwriter.h174 virtual void Free(void* ptr) = 0;
/tools/test/graphicsbenchmark/apps/alloc_stress_app/src/cpp/
Dalloc_stress_activity.cpp41 char *ptr = (char *) malloc(s); in Java_com_android_game_qualification_allocstress_MainActivity_cmain() local
42 memset(ptr, (int) allocCount >> 10, s); in Java_com_android_game_qualification_allocstress_MainActivity_cmain()
/tools/dexter/dexter/
Ddexter.cc267 virtual void Free(void* ptr) { ::free(ptr); } in CreateNewImage()