Home
last modified time | relevance | path

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

/tools/dexter/slicer/export/slicer/
Ddex_leb128.h29 const u1* ptr = *pptr; in ReadULeb128() local
30 u4 result = *(ptr++); in ReadULeb128()
33 u4 cur = *(ptr++); in ReadULeb128()
36 cur = *(ptr++); in ReadULeb128()
39 cur = *(ptr++); in ReadULeb128()
45 cur = *(ptr++); in ReadULeb128()
52 *pptr = ptr; in ReadULeb128()
59 const u1* ptr = *pptr; in ReadSLeb128() local
60 s4 result = *(ptr++); in ReadSLeb128()
65 s4 cur = *(ptr++); in ReadSLeb128()
[all …]
Dmemview.h31 MemView(const void* ptr, size_t size) : ptr_(ptr), size_(size) { in MemView() argument
38 const T* ptr() const { in ptr() function
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()
Darrayview.h34 ArrayView(T* ptr, size_t count) : begin_(ptr), end_(ptr + count) {} in ArrayView() argument
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()
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);
Dreader.h106 const T* ptr(int offset) const { in ptr() function
122 return slicer::ArrayView<const T>(ptr<T>(offset), count); in section()
Dwriter.h174 virtual void Free(void* ptr) = 0;
/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()
303 memcpy(header->magic, dex_ir_->magic.ptr(), dex_ir_->magic.size()); in CreateImage()
756 const dex::u1* src = ir_debug_info->data.ptr<dex::u1>(); in WriteDebugInfo()
819 dex::u2* ptr = dex_->code.ptr<dex::u2>(offset); in WriteInstructions() local
820 dex::u2* const end = ptr + instructions.size(); in WriteInstructions()
823 while (ptr < end) { in WriteInstructions()
824 auto opcode = dex::OpcodeFromBytecode(*ptr); in WriteInstructions()
835 index16 = &ptr[1]; in WriteInstructions()
839 index32 = reinterpret_cast<dex::u4*>(&ptr[1]); in WriteInstructions()
[all …]
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 …]
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()
Dtryblocks_encoder.cc106 auto tries_ptr = tries_.ptr<const dex::TryBlock>(0); in Encode()
/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()
/tools/repohooks/tools/
Dcheckpatch.pl2726 my $ptr = substr($blank, 0, length($utf8_prefix)) . "^";
2727 my $hereptr = "$hereline$ptr\n";
4211 my $ptr = substr($blank, 0, $off) . "^";
4212 my $hereptr = "$hereline$ptr\n";
5481 my $ptr = $1;
5483 if ((($ptr =~ /\b(union|struct)\s+$attr\b/ &&
5486 ($ptr !~ /\b(union|struct)\s+$attr\b/ &&
/tools/dexter/testdata/expected/
Dmedium.rewrite30507 .local v10, "ptr", int
30513 .local v11, "ptr", int
Dmedium.wrap_invoke30507 .local v10, "ptr", int
30513 .local v11, "ptr", int
Dmedium.scratch_regs37692 .local v10, "ptr", int
37698 .local v11, "ptr", int
Dmedium.exit_hook32753 .local v10, "ptr", int
32759 .local v11, "ptr", int
Dmedium.entry_hook31703 .local v10, "ptr", int
31709 .local v11, "ptr", int
Dmedium.compact_cfg36892 .local v10, "ptr", int
36898 .local v11, "ptr", int