/tools/dexter/slicer/export/slicer/ |
D | dex_leb128.h | 29 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 …]
|
D | memview.h | 31 MemView(const void* ptr, size_t size) : ptr_(ptr), size_(size) { in MemView() argument 38 const T* ptr() const { in ptr() function
|
D | buffer.h | 75 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()
|
D | arrayview.h | 34 ArrayView(T* ptr, size_t count) : begin_(ptr), end_(ptr + count) {} in ArrayView() argument
|
D | dex_ir.h | 95 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()
|
D | code_ir.h | 435 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);
|
D | reader.h | 106 const T* ptr(int offset) const { in ptr() function 122 return slicer::ArrayView<const T>(ptr<T>(offset), count); in section()
|
D | writer.h | 174 virtual void Free(void* ptr) = 0;
|
/tools/dexter/slicer/ |
D | code_ir.cc | 71 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 …]
|
D | reader.cc | 31 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 …]
|
D | writer.cc | 190 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 …]
|
D | bytecode_encoder.cc | 528 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 …]
|
D | dex_bytecode.cc | 139 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()
|
D | tryblocks_encoder.cc | 106 auto tries_ptr = tries_.ptr<const dex::TryBlock>(0); in Encode()
|
/tools/test/graphicsbenchmark/apps/alloc_stress_app/src/cpp/ |
D | alloc_stress_activity.cpp | 41 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/ |
D | dexter.cc | 267 virtual void Free(void* ptr) { ::free(ptr); } in CreateNewImage()
|
/tools/repohooks/tools/ |
D | checkpatch.pl | 2726 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/ |
D | medium.rewrite | 30507 .local v10, "ptr", int 30513 .local v11, "ptr", int
|
D | medium.wrap_invoke | 30507 .local v10, "ptr", int 30513 .local v11, "ptr", int
|
D | medium.scratch_regs | 37692 .local v10, "ptr", int 37698 .local v11, "ptr", int
|
D | medium.exit_hook | 32753 .local v10, "ptr", int 32759 .local v11, "ptr", int
|
D | medium.entry_hook | 31703 .local v10, "ptr", int 31709 .local v11, "ptr", int
|
D | medium.compact_cfg | 36892 .local v10, "ptr", int 36898 .local v11, "ptr", int
|