/art/libdexfile/dex/ |
D | dex_file_exception_helpers.cc | 24 CatchHandlerIterator::CatchHandlerIterator(const CodeItemDataAccessor& accessor, uint32_t address) { in CatchHandlerIterator() argument 29 switch (accessor.TriesSize()) { in CatchHandlerIterator() 33 const dex::TryItem* tries = accessor.TryItems().begin(); in CatchHandlerIterator() 44 const dex::TryItem* try_item = accessor.FindTryItem(address); in CatchHandlerIterator() 49 Init(accessor, offset); in CatchHandlerIterator() 52 CatchHandlerIterator::CatchHandlerIterator(const CodeItemDataAccessor& accessor, in CatchHandlerIterator() argument 55 Init(accessor, try_item.handler_off_); in CatchHandlerIterator() 58 void CatchHandlerIterator::Init(const CodeItemDataAccessor& accessor, int32_t offset) { in Init() argument 60 Init(accessor.GetCatchHandlerData(offset)); in Init()
|
D | class_accessor_test.cc | 32 for (ClassAccessor accessor : dex_file->GetClasses()) { in TEST_F() local 33 const dex::ClassDef& class_def = dex_file->GetClassDef(accessor.GetClassDefIndex()); in TEST_F() 34 EXPECT_EQ(accessor.GetDescriptor(), dex_file->StringByTypeIdx(class_def.class_idx_)); in TEST_F() 35 EXPECT_EQ(class_def_idx, accessor.GetClassDefIndex()); in TEST_F() 38 auto methods = accessor.GetMethods(); in TEST_F() 39 auto fields = accessor.GetFields(); in TEST_F() 42 auto instance_fields = accessor.GetInstanceFields(); in TEST_F() 44 accessor.VisitFieldsAndMethods( in TEST_F()
|
D | dex_file_tracking_registrar.cc | 159 for (ClassAccessor accessor : dex_file_->GetClasses()) { in SetAllCodeItemRegistration() local 160 for (const ClassAccessor::Method& method : accessor.GetMethods()) { in SetAllCodeItemRegistration() 178 CodeItemInstructionAccessor accessor(*dex_file_, code_item); in SetAllCodeItemStartRegistration() local 179 size_t code_item_start_end = reinterpret_cast<size_t>(accessor.Insns()); in SetAllCodeItemStartRegistration() 194 CodeItemInstructionAccessor accessor(*dex_file_, code_item); in SetAllInsnsRegistration() local 195 const void* insns_begin = reinterpret_cast<const void*>(accessor.Insns()); in SetAllInsnsRegistration() 197 size_t insns_size = accessor.InsnsSizeInCodeUnits() * 2; in SetAllInsnsRegistration() 205 for (ClassAccessor accessor : dex_file_->GetClasses()) { in SetCodeItemRegistration() local 206 for (const ClassAccessor::Method& method : accessor.GetMethods()) { in SetCodeItemRegistration()
|
D | dex_file_exception_helpers.h | 34 CatchHandlerIterator(const CodeItemDataAccessor& accessor, uint32_t address); 36 CatchHandlerIterator(const CodeItemDataAccessor& accessor, const dex::TryItem& try_item); 59 void Init(const CodeItemDataAccessor& accessor, int32_t offset);
|
/art/test/712-varhandle-invocations/util-src/ |
D | generate_java.py | 559 def build_template_dictionary(test_class, var_handle_kind, accessor, var_type): argument 563 if accessor.get_number_of_var_type_arguments() != 0 and coordinates != "": 566 'accessor_method' : accessor.method_name, 567 'access_mode' : accessor.access_mode, 581 def emit_accessor_test(var_handle_kind, accessor, var_type, output_path): argument 582 …test_class = var_handle_kind.get_name() + capitalize_first(accessor.method_name) + capitalize_firs… 585 expansions = build_template_dictionary(test_class, var_handle_kind, accessor, var_type) 587 if accessor.access_mode_form == AccessModeForm.GET: 591 elif accessor.access_mode_form == AccessModeForm.SET: 595 elif accessor.access_mode_form == AccessModeForm.STRONG_COMPARE_AND_SET: [all …]
|
/art/compiler/ |
D | compiler.cc | 56 CodeItemDataAccessor accessor(dex_file, &code_item); in IsPathologicalCase() local 57 if (accessor.InsnsSizeInCodeUnits() >= UINT16_MAX / 4) { in IsPathologicalCase() 59 << accessor.InsnsSizeInCodeUnits() in IsPathologicalCase() 63 if (accessor.RegistersSize() >= UINT16_MAX / 4) { in IsPathologicalCase() 65 << accessor.RegistersSize() << " in " << dex_file.PrettyMethod(method_idx); in IsPathologicalCase()
|
D | exception_test.cc | 131 CodeItemDataAccessor accessor(*dex_, dex_->GetCodeItem(method_f_->GetCodeItemOffset())); in TEST_F() local 133 ASSERT_TRUE(accessor.HasCodeItem()); in TEST_F() 135 ASSERT_EQ(2u, accessor.TriesSize()); in TEST_F() 136 ASSERT_NE(0u, accessor.InsnsSizeInCodeUnits()); in TEST_F() 138 const dex::TryItem& t0 = accessor.TryItems().begin()[0]; in TEST_F() 139 const dex::TryItem& t1 = accessor.TryItems().begin()[1]; in TEST_F() 142 CatchHandlerIterator iter(accessor, 4 /* Dex PC in the first try block */); in TEST_F() 152 CatchHandlerIterator iter(accessor, 8 /* Dex PC in the second try block */); in TEST_F() 159 CatchHandlerIterator iter(accessor, 11 /* Dex PC not in any try block */); in TEST_F()
|
/art/runtime/interpreter/ |
D | interpreter_switch_impl.h | 40 const CodeItemDataAccessor& accessor; member 59 ALWAYS_INLINE JValue ExecuteSwitchImpl(Thread* self, const CodeItemDataAccessor& accessor, in ExecuteSwitchImpl() argument 65 .accessor = accessor, in ExecuteSwitchImpl() 72 const uint16_t* dex_pc = ctx.accessor.Insns(); in ExecuteSwitchImpl()
|
D | shadow_frame.cc | 31 CodeItemDataAccessor accessor(m->DexInstructionData()); in GetThisObject() local 32 uint16_t reg = accessor.RegistersSize() - accessor.InsSize(); in GetThisObject()
|
D | interpreter.cc | 249 const CodeItemDataAccessor& accessor, in Execute() argument 274 shadow_frame.GetThisObject(accessor.InsSize()), in Execute() 285 shadow_frame.GetThisObject(accessor.InsSize()), in Execute() 304 uint16_t arg_offset = accessor.RegistersSize() - accessor.InsSize(); in Execute() 329 return ExecuteSwitchImpl<false, true>(self, accessor, shadow_frame, result_register, in Execute() 332 return ExecuteSwitchImpl<false, false>(self, accessor, shadow_frame, result_register, in Execute() 338 return ExecuteSwitchImpl<false, false>(self, accessor, shadow_frame, result_register, in Execute() 342 accessor.Insns(), in Execute() 349 result_register = ExecuteSwitchImpl<false, false>(self, accessor, shadow_frame, in Execute() 361 return ExecuteSwitchImpl<false, true>(self, accessor, shadow_frame, result_register, in Execute() [all …]
|
D | interpreter.h | 57 const CodeItemDataAccessor& accessor, 62 const CodeItemDataAccessor& accessor,
|
/art/runtime/mirror/ |
D | var_handle.cc | 701 Accessor* accessor) in Get() argument 703 obj->GetPrimitiveFieldViaAccessor(field_offset, accessor); in Get() 709 Accessor* accessor) 716 Accessor* accessor) in Get() argument 718 TypeAdaptorAccessor<int32_t, float> float_to_int_accessor(accessor); in Get() 725 Accessor* accessor) in Get() argument 727 TypeAdaptorAccessor<int64_t, double> double_to_int_accessor(accessor); in Get() 734 Accessor* accessor) in Update() argument 737 obj->UpdateFieldBooleanViaAccessor<kTransactionActive>(field_offset, accessor); in Update() 739 obj->UpdateFieldBooleanViaAccessor<kTransactionInactive>(field_offset, accessor); in Update() [all …]
|
/art/test/959-invoke-polymorphic-accessors/src/ |
D | Main.java | 470 AccessorType accessor) throws Throwable { in tryAccessor() argument 474 resultFor(primitive, PrimitiveType.Boolean, accessor, AccessorType.IPUT)); in tryAccessor() 476 resultFor(primitive, PrimitiveType.Boolean, accessor, AccessorType.SPUT)); in tryAccessor() 478 resultFor(primitive, PrimitiveType.Boolean, accessor, AccessorType.IGET)); in tryAccessor() 480 resultFor(primitive, PrimitiveType.Boolean, accessor, AccessorType.SGET)); in tryAccessor() 484 resultFor(primitive, PrimitiveType.Byte, accessor, AccessorType.IPUT)); in tryAccessor() 486 resultFor(primitive, PrimitiveType.Byte, accessor, AccessorType.SPUT)); in tryAccessor() 488 resultFor(primitive, PrimitiveType.Byte, accessor, AccessorType.IGET)); in tryAccessor() 490 resultFor(primitive, PrimitiveType.Byte, accessor, AccessorType.SGET)); in tryAccessor() 494 resultFor(primitive, PrimitiveType.Char, accessor, AccessorType.IPUT)); in tryAccessor() [all …]
|
/art/dexdump/ |
D | dexdump_cfg.cc | 41 CodeItemDataAccessor accessor(method.GetInstructionsAndData()); in DumpMethodCFG() local 45 for (const DexInstructionPcPair& pair : accessor) { in DumpMethodCFG() 79 for (const DexInstructionPcPair& pair : accessor) { in DumpMethodCFG() 163 for (const DexInstructionPcPair& pair : accessor) { in DumpMethodCFG() 197 CatchHandlerIterator catch_it(accessor, dex_pc); in DumpMethodCFG() 256 CatchHandlerIterator catch_it(accessor, dex_pc); in DumpMethodCFG() 294 const Instruction* inst = &accessor.InstructionAt(dex_pc); in DumpMethodCFG() 297 CatchHandlerIterator catch_it(accessor, dex_pc); in DumpMethodCFG() 323 if (dex_pc >= accessor.InsnsSizeInCodeUnits()) { in DumpMethodCFG()
|
/art/dexlist/ |
D | dexlist.cc | 92 CodeItemDebugInfoAccessor accessor(*pDexFile, pCode, idx); in dumpMethod() local 116 accessor.DecodeDebugPositionInfo([&](const DexFile::PositionInfo& entry) { in dumpMethod() 127 insnsOff, accessor.InsnsSizeInCodeUnits() * 2, in dumpMethod() 144 ClassAccessor accessor(*pDexFile, class_def); in dumpClass() local 145 for (const ClassAccessor::Method& method : accessor.GetMethods()) { in dumpClass()
|
/art/dex2oat/dex/ |
D | dex_to_dex_decompiler_test.cc | 85 for (ClassAccessor accessor : updated_dex_file->GetClasses()) { in RunTest() local 87 for (const ClassAccessor::Method& method : accessor.GetMethods()) { in RunTest() 95 *accessor.GetCodeItem(method), in RunTest()
|
/art/compiler/debug/ |
D | elf_debug_info_writer.h | 48 CodeItemDebugInfoAccessor accessor(*mi->dex_file, mi->code_item, mi->dex_method_index); in GetParamNames() 49 if (accessor.HasCodeItem()) { in GetParamNames() 50 accessor.VisitParameterNames([&](const dex::StringIndex& id) { in GetParamNames() 150 CodeItemDebugInfoAccessor accessor(*dex, mi->code_item, mi->dex_method_index); in Write() 193 if (accessor.HasCodeItem() && mi->code_info != nullptr) { in Write() 210 if (accessor.HasCodeItem()) { in Write() 212 const uint32_t vreg = accessor.RegistersSize() - accessor.InsSize() + arg_reg; in Write() 230 if (accessor.HasCodeItem()) { in Write() 232 const uint32_t vreg = accessor.RegistersSize() - accessor.InsSize() + arg_reg; in Write() 238 if (accessor.HasCodeItem()) { in Write() [all …]
|
/art/runtime/ |
D | check_reference_map_visitor.h | 69 CodeItemDataAccessor accessor(m->DexInstructionData()); in CheckOptimizedMethod() 70 uint16_t number_of_dex_registers = accessor.RegistersSize(); in CheckOptimizedMethod() 77 CHECK_LT(reg, accessor.RegistersSize()); in CheckOptimizedMethod()
|
/art/compiler/optimizing/ |
D | builder.h | 37 const CodeItemDebugInfoAccessor& accessor, 48 const CodeItemDebugInfoAccessor& accessor,
|
D | builder.cc | 41 const CodeItemDebugInfoAccessor& accessor, in HGraphBuilder() argument 50 code_item_accessor_(accessor), in HGraphBuilder() 61 const CodeItemDebugInfoAccessor& accessor, in HGraphBuilder() argument 66 code_item_accessor_(accessor), in HGraphBuilder()
|
/art/profman/ |
D | boot_image_profile.cc | 78 for (ClassAccessor accessor : dex_file->GetClasses()) { in GenerateBootImageProfile() local 79 TypeReference ref(dex_file.get(), accessor.GetClassIdx()); in GenerateBootImageProfile() 92 accessor.VisitFieldsAndMethods( in GenerateBootImageProfile()
|
/art/test/983-source-transform-verify/ |
D | source_transform_art.cc | 56 for (ClassAccessor accessor : dex->GetClasses()) { in VerifyClassData() local 57 for (const ClassAccessor::Method& method : accessor.GetMethods()) { in VerifyClassData()
|
/art/runtime/verifier/ |
D | class_verifier.cc | 113 ClassAccessor accessor(*dex_file, class_def); in VerifyClass() local 114 SCOPED_TRACE << "VerifyClass " << PrettyDescriptor(accessor.GetDescriptor()); in VerifyClass() 120 for (const ClassAccessor::Method& method : accessor.GetMethods()) { in VerifyClass() 181 PrettyDescriptor(accessor.GetDescriptor()).c_str()); in VerifyClass()
|
/art/tools/dexanalyze/ |
D | dexanalyze_experiments.cc | 93 for (ClassAccessor accessor : dex_file->GetClasses()) { in ProcessDexFiles() local 94 for (const ClassAccessor::Method& method : accessor.GetMethods()) { in ProcessDexFiles() 246 for (ClassAccessor accessor : dex_file.GetClasses()) { in ProcessDexFile() local 255 for (const ClassAccessor::Field& field : accessor.GetStaticFields()) { in ProcessDexFile() 260 for (const ClassAccessor::Field& field : accessor.GetInstanceFields()) { in ProcessDexFile() 312 for (const ClassAccessor::Method& method : accessor.GetMethods()) { in ProcessDexFile() 382 if (dex_file.GetMethodId(method_idx).class_idx_ == accessor.GetClassIdx()) { in ProcessDexFile() 393 if (dex_file.GetMethodId(method_idx).class_idx_ == accessor.GetClassIdx()) { in ProcessDexFile() 404 if (dex_file.GetMethodId(method_idx).class_idx_ == accessor.GetClassIdx()) { in ProcessDexFile() 415 if (dex_file.GetMethodId(method_idx).class_idx_ == accessor.GetClassIdx()) { in ProcessDexFile() [all …]
|
/art/compiler/driver/ |
D | dex_compilation_unit.cc | 78 ClassAccessor accessor(*GetDexFile(), GetClassDefIndex()); in RequiresConstructorBarrier() local 79 for (const ClassAccessor::Field& field : accessor.GetInstanceFields()) { in RequiresConstructorBarrier()
|