/tools/dexter/slicer/ |
D | bytecode_encoder.cc | 28 SLICER_CHECK(fa == a); in Pack_Z_8() 35 SLICER_CHECK(fa == a); in Pack_8_8() 37 SLICER_CHECK(fb == b); in Pack_8_8() 44 SLICER_CHECK(fa == a); in Pack_4_4_8() 46 SLICER_CHECK(fb == b); in Pack_4_4_8() 48 SLICER_CHECK(fc == c); in Pack_4_4_8() 55 SLICER_CHECK(fa == a); in Pack_4_4_4_4() 57 SLICER_CHECK(fb == b); in Pack_4_4_4_4() 59 SLICER_CHECK(fc == c); in Pack_4_4_4_4() 61 SLICER_CHECK(fd == d); in Pack_4_4_4_4() [all …]
|
D | reader.cc | 91 SLICER_CHECK(ir_class != nullptr); in CreateClassIr() 122 SLICER_CHECK(index != dex::kNoIndex); in GetClass() 128 SLICER_CHECK(p == dummy); in GetClass() 132 SLICER_CHECK(p != dummy); in GetClass() 139 SLICER_CHECK(index != dex::kNoIndex); in GetType() 145 SLICER_CHECK(p == dummy); in GetType() 149 SLICER_CHECK(p != dummy); in GetType() 156 SLICER_CHECK(index != dex::kNoIndex); in GetFieldDecl() 162 SLICER_CHECK(p == dummy); in GetFieldDecl() 166 SLICER_CHECK(p != dummy); in GetFieldDecl() [all …]
|
D | writer.cc | 174 SLICER_CHECK(!"unexpected value type"); in WriteEncodedValue() 192 SLICER_CHECK(size == ir_value->original.size()); in WriteEncodedValue() 193 SLICER_CHECK(memcmp(ptr, ir_value->original.ptr(), size) == 0); in WriteEncodedValue() 222 SLICER_CHECK(section.ItemsCount() == 0); in CopySection() 226 SLICER_CHECK(section.ItemsCount() > 0); in CopySection() 229 SLICER_CHECK(offset >= sizeof(dex::Header)); in CopySection() 230 SLICER_CHECK(offset + size <= image_size); in CopySection() 263 SLICER_CHECK(offset % 4 == 0); in CreateImage() 288 SLICER_CHECK(offset % 4 == 0); in CreateImage() 298 SLICER_CHECK(image_size > sizeof(dex::Header)); in CreateImage() [all …]
|
D | tryblocks_encoder.cc | 28 SLICER_CHECK(end_offset > begin_offset); in Visit() 29 SLICER_CHECK(end_offset - begin_offset < (1 << 16)); in Visit() 46 SLICER_CHECK(handler.label->offset != kInvalidOffset); in Visit() 51 SLICER_CHECK(try_end->catch_all->offset != kInvalidOffset); in Visit() 59 SLICER_CHECK(handlers_.empty()); in Encode() 60 SLICER_CHECK(tries_.empty()); in Encode() 75 SLICER_CHECK(tries_count < (1 << 16)); in Encode() 100 SLICER_CHECK(!tries_.empty()); in Encode() 101 SLICER_CHECK(!handlers_.empty()); in Encode()
|
D | code_ir.cc | 38 SLICER_CHECK(ir_code != nullptr); in Assemble() 81 SLICER_CHECK(handler.ir_type != nullptr); in DissasembleTryBlocks() 101 SLICER_CHECK(!try_block_end->handlers.empty() || in DissasembleTryBlocks() 246 SLICER_CHECK(isize > 0); in DissasembleBytecode() 273 SLICER_CHECK(ptr == end); in DissasembleBytecode() 297 SLICER_CHECK(std::is_sorted(extra.begin(), extra.end(), in MergeInstructions() 363 SLICER_CHECK(offset % 2 == 0); in DecodePackedSwitch() 365 SLICER_CHECK(instr == nullptr); in DecodePackedSwitch() 372 SLICER_CHECK(instr->targets.empty()); in FixupPackedSwitch() 375 SLICER_CHECK(dex_packed_switch->ident == dex::kPackedSwitchSignature); in FixupPackedSwitch() [all …]
|
D | debuginfo_encoder.cc | 34 SLICER_CHECK(dbg_annotation->offset > last_address_); in Visit() 52 SLICER_CHECK(line >= 0); in Visit() 124 SLICER_CHECK(dbginfo_.empty()); in Encode() 125 SLICER_CHECK(param_names_ == nullptr); in Encode() 126 SLICER_CHECK(line_start_ == 0); in Encode() 127 SLICER_CHECK(last_line_ == 0); in Encode() 128 SLICER_CHECK(last_address_ == 0); in Encode() 129 SLICER_CHECK(source_file_ == nullptr); in Encode() 139 SLICER_CHECK(!dbginfo_.empty()); in Encode()
|
D | instrumentation.cc | 126 SLICER_CHECK(return_void); in Apply() 129 SLICER_CHECK(!return_void); in Apply() 135 SLICER_CHECK(!return_void); in Apply() 141 SLICER_CHECK(!return_void); in Apply() 260 SLICER_CHECK(shift > 0); in RegsRenumberVisitor() 310 SLICER_CHECK(left_to_allocate_ > 0); in RegsRenumbering() 339 SLICER_CHECK(ir_method->code->ins_count > 0); in ShiftParams() 340 SLICER_CHECK(left_to_allocate_ > 0); in ShiftParams() 359 SLICER_CHECK(regs >= ins_count); in ShiftParams() 394 SLICER_CHECK(count > 0 && count <= left_to_allocate_); in Allocate() [all …]
|
D | dex_format.cc | 49 SLICER_CHECK(!"unexpected type"); in PrimitiveTypeName() 67 SLICER_CHECK(*descriptor != '\0'); in DescriptorToDecl() 74 SLICER_CHECK(descriptor[1] == '\0'); in DescriptorToDecl() 98 SLICER_CHECK(*descriptor == ';'); in DescriptorToShorty() 101 SLICER_CHECK(descriptor[1] == '\0'); in DescriptorToShorty() 102 SLICER_CHECK(short_descriptor == 'L' || PrimitiveTypeName(short_descriptor) != nullptr); in DescriptorToShorty()
|
D | dex_ir_builder.cc | 81 SLICER_CHECK(ir_node == nullptr); in GetAsciiString() 109 SLICER_CHECK(ir_node == nullptr); in GetType() 168 SLICER_CHECK(ir_node == nullptr); in GetProto() 197 SLICER_CHECK(ir_node == nullptr); in GetFieldDecl() 223 SLICER_CHECK(ir_node == nullptr); in GetMethodDecl()
|
D | dex_ir.cc | 143 SLICER_CHECK(*nextIndex < classes.size()); in TopSortClassIndex() 165 SLICER_CHECK(a->decl->index != b->decl->index || a == b); in SortEncodedFields() 174 SLICER_CHECK(a->decl->index != b->decl->index || a == b); in SortEncodedMethods() 259 SLICER_CHECK(a->index < classes.size()); in Normalize() 260 SLICER_CHECK(b->index < classes.size()); in Normalize() 261 SLICER_CHECK(a->index != b->index || a == b); in Normalize()
|
D | dex_bytecode.cc | 247 SLICER_CHECK(format != k35mi); in DecodeInstruction() 271 SLICER_CHECK(!"Invalid arg count in 35c/35ms/35mi"); in DecodeInstruction()
|
D | control_flow_graph.cc | 34 SLICER_CHECK(state_ != State::BlockBody); in Finish()
|
/tools/dexter/dexter/ |
D | experimental.cc | 239 SLICER_CHECK(return_void); in StressExitHook() 242 SLICER_CHECK(!return_void); in StressExitHook() 248 SLICER_CHECK(!return_void); in StressExitHook() 254 SLICER_CHECK(!return_void); in StressExitHook() 305 SLICER_CHECK(mi.InstrumentMethod(method1)); in TestMethodInstrumenter() 308 SLICER_CHECK(mi.InstrumentMethod(method2)); in TestMethodInstrumenter() 324 SLICER_CHECK(mi.InstrumentMethod(ir_method.get())); in StressScratchRegs() 325 SLICER_CHECK(t1->ScratchRegs().size() == 1); in StressScratchRegs() 326 SLICER_CHECK(t2->ScratchRegs().size() == 1); in StressScratchRegs() 327 SLICER_CHECK(t3->ScratchRegs().size() == 1); in StressScratchRegs() [all …]
|
D | dissasembler.cc | 198 SLICER_CHECK(type->index != dex::kNoIndex); in Visit() 205 SLICER_CHECK(field->index != dex::kNoIndex); in Visit() 212 SLICER_CHECK(method->index != dex::kNoIndex); in Visit()
|
D | dexter.cc | 308 SLICER_CHECK(fwrite(new_image, 1, new_image_size, out_file) == new_image_size); in CreateNewImage() 340 SLICER_CHECK(fread(in_buff.get(), 1, in_size, in_file) == in_size); in ProcessDex()
|
/tools/dexter/slicer/export/slicer/ |
D | buffer.h | 63 SLICER_CHECK(!sealed_); in Seal() 76 SLICER_CHECK(offset + sizeof(T) <= size_); in ptr() 118 SLICER_CHECK(&buff != this); in Push() 156 SLICER_CHECK(buff_ != nullptr); in data() 162 SLICER_CHECK(!sealed_); in Expand() 166 SLICER_CHECK(buff_ != nullptr); in Expand()
|
D | instrumentation.h | 49 SLICER_CHECK(hook_method_id_.signature == nullptr); in hook_method_id_() 69 SLICER_CHECK(hook_method_id_.signature == nullptr); in ExitHook() 89 SLICER_CHECK(detour_method_id_.signature == nullptr); in DetourHook() 131 SLICER_CHECK(allocate_count > 0); in allocate_count_() 137 SLICER_CHECK(scratch_regs_.size() == static_cast<size_t>(allocate_count_)); in ScratchRegs()
|
D | writer.h | 42 SLICER_CHECK(offset > 0 && offset % 4 == 0); in SetOffset() 47 SLICER_CHECK(offset_ > 0 && offset_ % 4 == 0); in SectionOffset() 52 SLICER_CHECK(offset_ > 0); in AbsoluteOffset() 53 SLICER_CHECK(itemOffset < size()); in AbsoluteOffset() 99 SLICER_CHECK(offset_ > 0 && offset_ % 4 == 0); in SectionOffset() 113 SLICER_CHECK(i >= 0 && i < count_);
|
D | code_ir.h | 245 SLICER_CHECK(operand != nullptr); in CastOperand() 248 SLICER_CHECK(op != nullptr); in CastOperand() 258 SLICER_CHECK(cv.converted != nullptr); in CastOperand() 268 SLICER_CHECK(operand != nullptr); 271 SLICER_CHECK(op != nullptr); 293 SLICER_CHECK(cv.converted != nullptr);
|
D | hash_table.h | 127 SLICER_CHECK(value != nullptr); in Insert() 166 SLICER_CHECK(Insert(bucket.value)); in InsertAll() 183 SLICER_CHECK(new_hash_table->Insert(value)); in Insert() 214 SLICER_CHECK(buckets_[ci].value != nullptr); in PrintStats()
|
D | reader.h | 107 SLICER_CHECK(offset >= 0 && offset + sizeof(T) <= size_); in ptr() 115 SLICER_CHECK(offset >= header_->data_off && offset + sizeof(T) <= size_); in dataPtr()
|
D | index_map.h | 42 SLICER_CHECK(!indexes_map_[index]); in MarkUsedIndex()
|
D | common.h | 24 #define SLICER_CHECK(expr) do { if(!(expr)) slicer::_checkFailed(#expr, __LINE__, __FILE__); } whil… macro
|
D | arrayview.h | 42 SLICER_CHECK(i < size());
|
D | intrusive_list.h | 117 SLICER_CHECK(pos != end_); in Remove()
|