Home
last modified time | relevance | path

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

1234

/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/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/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.cc132 CodeItemDataAccessor accessor(*dex_, method_f_->GetCodeItem()); in TEST_F() local
134 ASSERT_TRUE(accessor.HasCodeItem()); in TEST_F()
136 ASSERT_EQ(2u, accessor.TriesSize()); in TEST_F()
137 ASSERT_NE(0u, accessor.InsnsSizeInCodeUnits()); in TEST_F()
139 const dex::TryItem& t0 = accessor.TryItems().begin()[0]; in TEST_F()
140 const dex::TryItem& t1 = accessor.TryItems().begin()[1]; in TEST_F()
143 CatchHandlerIterator iter(accessor, 4 /* Dex PC in the first try block */); in TEST_F()
153 CatchHandlerIterator iter(accessor, 8 /* Dex PC in the second try block */); in TEST_F()
160 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.cc248 const CodeItemDataAccessor& accessor, in ExecuteSwitch() argument
255 self, accessor, shadow_frame, result_register, interpret_one_instruction); in ExecuteSwitch()
258 self, accessor, shadow_frame, result_register, interpret_one_instruction); in ExecuteSwitch()
263 self, accessor, shadow_frame, result_register, interpret_one_instruction); in ExecuteSwitch()
266 self, accessor, shadow_frame, result_register, interpret_one_instruction); in ExecuteSwitch()
273 const CodeItemDataAccessor& accessor, in Execute() argument
298 shadow_frame.GetThisObject(accessor.InsSize()), in Execute()
311 accessor.InsSize(), in Execute()
317 shadow_frame.GetThisObject(accessor.InsSize()), in Execute()
328 accessor.InsSize(), in Execute()
[all …]
Dinterpreter.h57 const CodeItemDataAccessor& accessor,
62 const CodeItemDataAccessor& accessor,
/art/runtime/mirror/
Dvar_handle.cc608 Accessor* accessor) in Get() argument
610 obj->GetPrimitiveFieldViaAccessor(field_offset, accessor); in Get()
616 Accessor* accessor)
623 Accessor* accessor) in Get() argument
625 TypeAdaptorAccessor<int32_t, float> float_to_int_accessor(accessor); in Get()
632 Accessor* accessor) in Get() argument
634 TypeAdaptorAccessor<int64_t, double> double_to_int_accessor(accessor); in Get()
641 Accessor* accessor) in Update() argument
644 obj->UpdateFieldBooleanViaAccessor<kTransactionActive>(field_offset, accessor); in Update()
646 obj->UpdateFieldBooleanViaAccessor<kTransactionInactive>(field_offset, accessor); in Update()
[all …]
/art/runtime/
Dnterp_helpers.cc120 CodeItemDataAccessor accessor(method->DexInstructionData()); in NterpGetFrameSize() local
121 const uint16_t num_regs = accessor.RegistersSize(); in NterpGetFrameSize()
122 const uint16_t out_regs = accessor.OutsSize(); in NterpGetFrameSize()
149 CodeItemDataAccessor accessor((*frame)->DexInstructionData()); in NterpGetRegistersArray() local
150 const uint16_t num_regs = accessor.RegistersSize(); in NterpGetRegistersArray()
156 CodeItemDataAccessor accessor((*frame)->DexInstructionData()); in NterpGetReferenceArray() local
157 const uint16_t out_regs = accessor.OutsSize(); in NterpGetReferenceArray()
167 CodeItemDataAccessor accessor((*frame)->DexInstructionData()); in NterpGetDexPC() local
168 const uint16_t out_regs = accessor.OutsSize(); in NterpGetDexPC()
Dcheck_reference_map_visitor.h91 CodeItemDataAccessor accessor(m->DexInstructionData()); in CheckOptimizedMethod()
92 uint16_t number_of_dex_registers = accessor.RegistersSize(); in CheckOptimizedMethod()
105 CHECK_LT(reg, accessor.RegistersSize()); in CheckOptimizedMethod()
/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/libdexfile/external/
Ddex_file_ext.cc61 art::ClassAccessor accessor(*dex_file_, class_def_index); in FindMethod() local
62 for (const art::ClassAccessor::Method& method : accessor.GetMethods()) { in FindMethod()
87 for (art::ClassAccessor accessor : dex_file_->GetClasses()) { in CreateClassCache() local
88 for (const art::ClassAccessor::Method& method : accessor.GetMethods()) { in CreateClassCache()
93 cache.emplace_back(offset + code.InsnsSizeInBytes(), accessor.GetClassDefIndex()); in CreateClassCache()
239 for (art::ClassAccessor accessor : self->dex_file_->GetClasses()) { in ADexFile_forEachMethod() local
240 for (const art::ClassAccessor::Method& method : accessor.GetMethods()) { in ADexFile_forEachMethod()
/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/compiler/optimizing/
Dbuilder.h37 const CodeItemDebugInfoAccessor& accessor,
46 const CodeItemDebugInfoAccessor& accessor,
Dbuilder.cc40 const CodeItemDebugInfoAccessor& accessor, in HGraphBuilder() argument
47 code_item_accessor_(accessor), in HGraphBuilder()
56 const CodeItemDebugInfoAccessor& accessor, in HGraphBuilder() argument
60 code_item_accessor_(accessor), in HGraphBuilder()
/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/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/tools/veridex/
Dprecise_hidden_api_finder.cc39 for (ClassAccessor accessor : resolver->GetDexFile().GetClasses()) { in RunInternal() local
40 if (class_filter.Matches(accessor.GetDescriptor())) { in RunInternal()
41 for (const ClassAccessor::Method& method : accessor.GetMethods()) { in RunInternal()
/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