Home
last modified time | relevance | path

Searched refs:dex_pc (Results 1 – 25 of 91) sorted by relevance

1234

/art/runtime/
Ddex_to_dex_decompiler.cc43 uint32_t dex_pc, in DecompileInstanceFieldAccess() argument
45 uint16_t index = GetIndexAt(dex_pc); in DecompileInstanceFieldAccess()
51 uint32_t dex_pc, in DecompileInvokeVirtual() argument
54 uint16_t index = GetIndexAt(dex_pc); in DecompileInvokeVirtual()
63 void DecompileNop(Instruction* inst, uint32_t dex_pc) { in DecompileNop() argument
69 if (quickened_pc != dex_pc) { in DecompileNop()
72 uint16_t reference_index = GetIndexAt(dex_pc); in DecompileNop()
73 uint16_t type_index = GetIndexAt(dex_pc); in DecompileNop()
79 uint16_t GetIndexAt(uint32_t dex_pc) { in GetIndexAt() argument
87 DCHECK_EQ(quickened_pc, dex_pc); in GetIndexAt()
[all …]
Dinstrumentation.h67 uint32_t dex_pc) REQUIRES_SHARED(Locks::mutator_lock_) = 0;
71 ArtMethod* method, uint32_t dex_pc,
78 ArtMethod* method, uint32_t dex_pc)
88 uint32_t dex_pc, ArtField* field) = 0;
92 uint32_t dex_pc, ArtField* field, const JValue& field_value) = 0;
101 uint32_t dex_pc,
109 uint32_t dex_pc,
318 ArtMethod* method, uint32_t dex_pc) const in MethodEnterEvent() argument
321 MethodEnterEventImpl(thread, this_object, method, dex_pc); in MethodEnterEvent()
327 ArtMethod* method, uint32_t dex_pc, in MethodExitEvent() argument
[all …]
Doat_quick_method_header.cc66 const uint32_t dex_pc, in ToNativeQuickPc() argument
80 LIKELY(is_for_catch_handler) ? code_info.GetCatchStackMapForDexPc(dex_pc, encoding) in ToNativeQuickPc()
81 : code_info.GetStackMapForDexPc(dex_pc, encoding); in ToNativeQuickPc()
88 LOG(FATAL) << "Failed to find native offset for dex pc 0x" << std::hex << dex_pc in ToNativeQuickPc()
Dbytecode_utils.h58 DexSwitchTable(const Instruction& instruction, uint32_t dex_pc) in DexSwitchTable() argument
60 dex_pc_(dex_pc), in DexSwitchTable()
167 inline const Instruction& GetDexInstructionAt(const DexFile::CodeItem& code_item, uint32_t dex_pc) { in GetDexInstructionAt() argument
168 return CodeItemIterator(code_item, dex_pc).CurrentInstruction(); in GetDexInstructionAt()
Dtrace.h144 ArtMethod* method, uint32_t dex_pc)
148 ArtMethod* method, uint32_t dex_pc,
153 ArtMethod* method, uint32_t dex_pc)
161 ArtMethod* method, uint32_t dex_pc, ArtField* field)
164 ArtMethod* method, uint32_t dex_pc, ArtField* field,
169 void Branch(Thread* thread, ArtMethod* method, uint32_t dex_pc, int32_t dex_pc_offset)
174 uint32_t dex_pc,
Dinstrumentation.cc303 uint32_t dex_pc = visitor.dex_pcs_.back(); in InstrumentationInstallStack() local
306 instrumentation->MethodEnterEvent(thread, (*isi).this_object_, (*isi).method_, dex_pc); in InstrumentationInstallStack()
921 uint32_t dex_pc) const { in MethodEnterEventImpl()
925 listener->MethodEntered(thread, this_object, method, dex_pc); in MethodEnterEventImpl()
933 uint32_t dex_pc, const JValue& return_value) const { in MethodExitEventImpl() argument
937 listener->MethodExited(thread, this_object, method, dex_pc, return_value); in MethodExitEventImpl()
945 uint32_t dex_pc) const { in MethodUnwindEvent()
949 listener->MethodUnwind(thread, this_object, method, dex_pc); in MethodUnwindEvent()
957 uint32_t dex_pc) const { in DexPcMovedEventImpl()
960 listener->DexPcMoved(thread, this_object, method, dex_pc); in DexPcMovedEventImpl()
[all …]
Dinstrumentation_test.cc49 uint32_t dex_pc ATTRIBUTE_UNUSED) in MethodEntered()
57 uint32_t dex_pc ATTRIBUTE_UNUSED, in MethodExited()
66 uint32_t dex_pc ATTRIBUTE_UNUSED) in MethodUnwind()
82 uint32_t dex_pc ATTRIBUTE_UNUSED, in FieldRead()
91 uint32_t dex_pc ATTRIBUTE_UNUSED, in FieldWritten()
106 uint32_t dex_pc ATTRIBUTE_UNUSED, in Branch()
115 uint32_t dex_pc ATTRIBUTE_UNUSED, in InvokeVirtualOrInterface()
322 uint32_t dex_pc) in ReportEvent() argument
326 instr->MethodEnterEvent(self, obj, method, dex_pc); in ReportEvent()
330 instr->MethodExitEvent(self, obj, method, dex_pc, value); in ReportEvent()
[all …]
/art/compiler/dex/
Ddex_to_dex_compiler.cc44 QuickenedInfo(uint32_t pc, uint16_t index) : dex_pc(pc), dex_member_index(index) {} in QuickenedInfo()
46 uint32_t dex_pc; member
74 void CompileReturnVoid(Instruction* inst, uint32_t dex_pc);
79 Instruction* CompileCheckCast(Instruction* inst, uint32_t dex_pc);
87 void CompileInstanceFieldAccess(Instruction* inst, uint32_t dex_pc,
96 void CompileInvokeVirtual(Instruction* inst, uint32_t dex_pc,
118 for (uint32_t dex_pc = 0; dex_pc < insns_size; in Compile() local
119 inst = const_cast<Instruction*>(inst->Next()), dex_pc = inst->GetDexPc(insns)) { in Compile()
122 CompileReturnVoid(inst, dex_pc); in Compile()
126 inst = CompileCheckCast(inst, dex_pc); in Compile()
[all …]
Dverified_method.cc72 uint32_t dex_pc = inst->GetDexPc(code_item->insns_); in GenerateSafeCastSet() local
73 if (!method_verifier->GetInstructionFlags(dex_pc).IsVisited()) { in GenerateSafeCastSet()
77 const verifier::RegisterLine* line = method_verifier->GetRegLine(dex_pc); in GenerateSafeCastSet()
98 DCHECK(safe_cast_set_.empty() || safe_cast_set_.back() < dex_pc); in GenerateSafeCastSet()
99 safe_cast_set_.push_back(dex_pc); in GenerateSafeCastSet()
/art/dexdump/
Ddexdump_cfg.cc42 for (uint32_t dex_pc = 0; in dumpMethodCFGImpl() local
43 dex_pc < code_item->insns_size_in_code_units_; in dumpMethodCFGImpl()
44 dex_pc += inst->SizeInCodeUnits(), inst = inst->Next()) { in dumpMethodCFGImpl()
46 dex_pc_is_branch_target.insert(dex_pc + inst->GetTargetOffset()); in dumpMethodCFGImpl()
48 const uint16_t* insns = code_item->insns_ + dex_pc; in dumpMethodCFGImpl()
64 dex_pc_is_branch_target.insert(dex_pc + offset); in dumpMethodCFGImpl()
78 for (uint32_t dex_pc = 0; in dumpMethodCFGImpl() local
79 dex_pc < code_item->insns_size_in_code_units_; in dumpMethodCFGImpl()
80 dex_pc += inst->SizeInCodeUnits(), inst = inst->Next()) { in dumpMethodCFGImpl()
81 if (dex_pc == 0 || in dumpMethodCFGImpl()
[all …]
/art/compiler/optimizing/
Dinstruction_builder.cc36 HBasicBlock* HInstructionBuilder::FindBlockStartingAt(uint32_t dex_pc) const { in FindBlockStartingAt()
37 return block_builder_->GetBlockAt(dex_pc); in FindBlockStartingAt()
227 HInstruction* HInstructionBuilder::LoadNullCheckedLocal(uint32_t register_index, uint32_t dex_pc) { in LoadNullCheckedLocal() argument
233 HNullCheck* null_check = new (arena_) HNullCheck(ref, dex_pc); in LoadNullCheckedLocal()
321 uint32_t dex_pc = it.CurrentDexPc(); in Build() local
322 if (dex_pc != block_dex_pc && FindBlockStartingAt(dex_pc) != nullptr) { in Build()
331 if (native_debuggable && native_debug_info_locations->IsBitSet(dex_pc)) { in Build()
332 AppendInstruction(new (arena_) HNativeDebugInfo(dex_pc)); in Build()
335 if (!ProcessDexInstruction(it.CurrentInstruction(), dex_pc)) { in Build()
483 void HInstructionBuilder::If_22t(const Instruction& instruction, uint32_t dex_pc) { in If_22t() argument
[all …]
Dinstruction_builder.h87 bool ProcessDexInstruction(const Instruction& instruction, uint32_t dex_pc);
91 uint16_t LookupQuickenedInfo(uint32_t dex_pc);
93 HBasicBlock* FindBlockStartingAt(uint32_t dex_pc) const;
102 HInstruction* LoadNullCheckedLocal(uint32_t register_index, uint32_t dex_pc);
117 void Unop_12x(const Instruction& instruction, Primitive::Type type, uint32_t dex_pc);
120 void Binop_23x(const Instruction& instruction, Primitive::Type type, uint32_t dex_pc);
123 void Binop_23x_shift(const Instruction& instruction, Primitive::Type type, uint32_t dex_pc);
128 uint32_t dex_pc);
131 void Binop_12x(const Instruction& instruction, Primitive::Type type, uint32_t dex_pc);
134 void Binop_12x_shift(const Instruction& instruction, Primitive::Type type, uint32_t dex_pc);
[all …]
Dnodes_vector.h67 uint32_t dex_pc) in HVecOperation() argument
69 dex_pc, in HVecOperation()
123 uint32_t dex_pc) in HVecUnaryOperation() argument
129 dex_pc) { in HVecUnaryOperation()
149 uint32_t dex_pc) in HVecBinaryOperation() argument
155 dex_pc) { in HVecBinaryOperation()
179 uint32_t dex_pc) in HVecMemoryOperation() argument
180 : HVecOperation(arena, packed_type, side_effects, number_of_inputs, vector_length, dex_pc), in HVecMemoryOperation()
225 uint32_t dex_pc = kNoDexPc)
226 : HVecUnaryOperation(arena, scalar, packed_type, vector_length, dex_pc) { in HVecUnaryOperation() argument
[all …]
Dblock_builder.cc23 HBasicBlock* HBasicBlockBuilder::MaybeCreateBlockAt(uint32_t dex_pc) { in MaybeCreateBlockAt() argument
24 return MaybeCreateBlockAt(dex_pc, dex_pc); in MaybeCreateBlockAt()
79 uint32_t dex_pc = it.CurrentDexPc(); in CreateBranchTargets() local
84 MaybeCreateBlockAt(dex_pc + instruction.GetTargetOffset()); in CreateBranchTargets()
86 DexSwitchTable table(instruction, dex_pc); in CreateBranchTargets()
88 MaybeCreateBlockAt(dex_pc + s_it.CurrentTargetOffset()); in CreateBranchTargets()
96 MaybeCreateBlockAt(dex_pc, s_it.GetDexPcForCurrentIndex()); in CreateBranchTargets()
112 MaybeCreateBlockAt(dex_pc + it.CurrentInstruction().SizeInCodeUnits()); in CreateBranchTargets()
126 uint32_t dex_pc = it.CurrentDexPc(); in ConnectBasicBlocks() local
129 HBasicBlock* next_block = GetBlockAt(dex_pc); in ConnectBasicBlocks()
[all …]
Dnodes.h511 HConstant* GetConstant(Primitive::Type type, int64_t value, uint32_t dex_pc = kNoDexPc);
516 HNullConstant* GetNullConstant(uint32_t dex_pc = kNoDexPc);
518 HIntConstant* GetIntConstant(int32_t value, uint32_t dex_pc = kNoDexPc) {
519 return CreateConstant(value, &cached_int_constants_, dex_pc);
521 HLongConstant* GetLongConstant(int64_t value, uint32_t dex_pc = kNoDexPc) {
522 return CreateConstant(value, &cached_long_constants_, dex_pc);
524 HFloatConstant* GetFloatConstant(float value, uint32_t dex_pc = kNoDexPc) {
525 return CreateConstant(bit_cast<int32_t, float>(value), &cached_float_constants_, dex_pc);
527 HDoubleConstant* GetDoubleConstant(double value, uint32_t dex_pc = kNoDexPc) {
528 return CreateConstant(bit_cast<int64_t, double>(value), &cached_double_constants_, dex_pc);
[all …]
Dnodes_x86.h67 uint32_t dex_pc) in HX86FPNeg() argument
68 : HExpression(result_type, SideEffects::None(), dex_pc) { in HX86FPNeg()
91 uint32_t dex_pc) in HX86PackedSwitch() argument
92 : HTemplateInstruction(SideEffects::None(), dex_pc), in HX86PackedSwitch()
Dnodes_shared.h34 uint32_t dex_pc = kNoDexPc)
35 : HExpression(type, SideEffects::None(), dex_pc), op_kind_(op) { in HExpression() argument
67 uint32_t dex_pc = kNoDexPc)
68 : HBinaryOperation(result_type, left, right, SideEffects::None(), dex_pc), in HBinaryOperation() argument
129 HIntermediateAddress(HInstruction* base_address, HInstruction* offset, uint32_t dex_pc) in HIntermediateAddress() argument
130 : HExpression(Primitive::kPrimInt, SideEffects::DependsOnGC(), dex_pc) { in HIntermediateAddress()
179 uint32_t dex_pc = kNoDexPc)
180 : HExpression(instr->GetType(), SideEffects::None(), dex_pc),
Dblock_builder.h49 HBasicBlock* GetBlockAt(uint32_t dex_pc) const { return branch_targets_[dex_pc]; } in GetBlockAt() argument
53 HBasicBlock* MaybeCreateBlockAt(uint32_t dex_pc);
Dstack_map_stream.cc27 void StackMapStream::BeginStackMapEntry(uint32_t dex_pc, in BeginStackMapEntry() argument
33 DCHECK_EQ(0u, current_entry_.dex_pc) << "EndStackMapEntry not called after BeginStackMapEntry"; in BeginStackMapEntry()
34 DCHECK_NE(dex_pc, static_cast<uint32_t>(-1)) << "invalid dex_pc"; in BeginStackMapEntry()
35 current_entry_.dex_pc = dex_pc; in BeginStackMapEntry()
55 dex_pc_max_ = std::max(dex_pc_max_, dex_pc); in BeginStackMapEntry()
106 uint32_t dex_pc, in BeginInlineInfoEntry() argument
114 if (dex_pc != static_cast<uint32_t>(-1) && kIsDebugBuild) { in BeginInlineInfoEntry()
120 current_inline_info_.dex_pc = dex_pc; in BeginInlineInfoEntry()
259 if (inline_entry.dex_pc != DexFile::kDexNoIndex && in ComputeInlineInfoEncoding()
260 (dex_pc_max == DexFile::kDexNoIndex || dex_pc_max < inline_entry.dex_pc)) { in ComputeInlineInfoEncoding()
[all …]
Dnodes_mips.h76 uint32_t dex_pc) in HMipsPackedSwitch() argument
77 : HTemplateInstruction(SideEffects::None(), dex_pc), in HMipsPackedSwitch()
/art/runtime/jit/
Dprofiling_info.cc50 uint32_t dex_pc = 0; in Create() local
61 entries.push_back(dex_pc); in Create()
67 dex_pc += instruction.SizeInCodeUnits(); in Create()
79 InlineCache* ProfilingInfo::GetInlineCache(uint32_t dex_pc) { in GetInlineCache() argument
82 if (cache_[i].dex_pc_ == dex_pc) { in GetInlineCache()
86 LOG(FATAL) << "No inline cache found for " << ArtMethod::PrettyMethod(method_) << "@" << dex_pc; in GetInlineCache()
90 void ProfilingInfo::AddInvokeInfo(uint32_t dex_pc, mirror::Class* cls) { in AddInvokeInfo() argument
91 InlineCache* cache = GetInlineCache(dex_pc); in AddInvokeInfo()
Dprofile_compilation_info_test.cc125 for (uint16_t dex_pc = 0; dex_pc < 11; dex_pc++) { in SaveProfilingInfoWithFakeInlineCaches() local
128 caches.emplace_back(dex_pc, /*is_missing_types*/false, classes); in SaveProfilingInfoWithFakeInlineCaches()
131 for (uint16_t dex_pc = 11; dex_pc < 22; dex_pc++) { in SaveProfilingInfoWithFakeInlineCaches() local
136 caches.emplace_back(dex_pc, /*is_missing_types*/false, classes); in SaveProfilingInfoWithFakeInlineCaches()
139 for (uint16_t dex_pc = 22; dex_pc < 33; dex_pc++) { in SaveProfilingInfoWithFakeInlineCaches() local
144 caches.emplace_back(dex_pc, /*is_missing_types*/false, classes); in SaveProfilingInfoWithFakeInlineCaches()
147 for (uint16_t dex_pc = 33; dex_pc < 44; dex_pc++) { in SaveProfilingInfoWithFakeInlineCaches() local
149 caches.emplace_back(dex_pc, /*is_missing_types*/true, classes); in SaveProfilingInfoWithFakeInlineCaches()
180 inline_cache.dex_pc, ProfileCompilationInfo::DexPcData(arena_.get()))->second; in ConvertProfileMethodInfo()
204 for (uint16_t dex_pc = 0; dex_pc < 11; dex_pc++) { in GetOfflineProfileMethodInfo() local
[all …]
/art/runtime/verifier/
Dmethod_verifier-inl.h33 inline RegisterLine* MethodVerifier::GetRegLine(uint32_t dex_pc) { in GetRegLine() argument
34 return reg_table_.GetLine(dex_pc); in GetRegLine()
/art/test/004-ReferenceMap/
Dstack_walk_refmap_jni.cc23 #define CHECK_REGS_CONTAIN_REFS(dex_pc, abort_if_not_found, ...) do { \ argument
28 dex_pc, \
/art/profman/
Dprofile_assistant_test.cc91 for (uint16_t dex_pc = 0; dex_pc < 11; dex_pc++) { in GetOfflineProfileMethodInfo() local
94 ic_map->Put(dex_pc, dex_pc_data); in GetOfflineProfileMethodInfo()
97 for (uint16_t dex_pc = 11; dex_pc < 22; dex_pc++) { in GetOfflineProfileMethodInfo() local
102 ic_map->Put(dex_pc, dex_pc_data); in GetOfflineProfileMethodInfo()
105 for (uint16_t dex_pc = 22; dex_pc < 33; dex_pc++) { in GetOfflineProfileMethodInfo() local
108 ic_map->Put(dex_pc, dex_pc_data); in GetOfflineProfileMethodInfo()
111 for (uint16_t dex_pc = 33; dex_pc < 44; dex_pc++) { in GetOfflineProfileMethodInfo() local
114 ic_map->Put(dex_pc, dex_pc_data); in GetOfflineProfileMethodInfo()

1234