Home
last modified time | relevance | path

Searched refs:accessor (Results 1 – 25 of 90) sorted by relevance

1234

/art/libdexfile/dex/
Ddex_file_exception_helpers.cc24 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()
Dclass_accessor_test.cc32 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()
Ddex_file_tracking_registrar.cc159 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()
Ddex_file_exception_helpers.h34 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/
Dgenerate_java.py559 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/
Dcompiler.cc56 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()
Dexception_test.cc131 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/
Dinterpreter_switch_impl.h40 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()
Dshadow_frame.cc31 CodeItemDataAccessor accessor(m->DexInstructionData()); in GetThisObject() local
32 uint16_t reg = accessor.RegistersSize() - accessor.InsSize(); in GetThisObject()
Dinterpreter.cc249 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 …]
Dinterpreter.h57 const CodeItemDataAccessor& accessor,
62 const CodeItemDataAccessor& accessor,
/art/runtime/mirror/
Dvar_handle.cc701 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/
DMain.java470 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/
Ddexdump_cfg.cc41 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/
Ddexlist.cc92 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/
Ddex_to_dex_decompiler_test.cc85 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/
Delf_debug_info_writer.h48 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/
Dcheck_reference_map_visitor.h69 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/
Dbuilder.h37 const CodeItemDebugInfoAccessor& accessor,
48 const CodeItemDebugInfoAccessor& accessor,
Dbuilder.cc41 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/
Dboot_image_profile.cc78 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/
Dsource_transform_art.cc56 for (ClassAccessor accessor : dex->GetClasses()) { in VerifyClassData() local
57 for (const ClassAccessor::Method& method : accessor.GetMethods()) { in VerifyClassData()
/art/runtime/verifier/
Dclass_verifier.cc113 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/
Ddexanalyze_experiments.cc93 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/
Ddex_compilation_unit.cc78 ClassAccessor accessor(*GetDexFile(), GetClassDefIndex()); in RequiresConstructorBarrier() local
79 for (const ClassAccessor::Field& field : accessor.GetInstanceFields()) { in RequiresConstructorBarrier()

1234