Home
last modified time | relevance | path

Searched refs:pc (Results 1 – 25 of 56) sorted by relevance

123

/art/runtime/arch/x86/
Dfault_handler_x86.cc80 static uint32_t GetInstructionSize(const uint8_t* pc) { in GetInstructionSize() argument
83 ssize_t bytes = SafeCopy(buf, pc, sizeof(buf)); in GetInstructionSize()
94 pc = reinterpret_cast<uint8_t*>(buf); in GetInstructionSize()
99 pc++; \ in GetInstructionSize()
100 if (pc - startpc > bytes) { \ in GetInstructionSize()
111 const uint8_t* startpc = pc; in GetInstructionSize()
113 uint8_t opcode = *pc; in GetInstructionSize()
146 opcode = *pc; in GetInstructionSize()
157 opcode = *pc; in GetInstructionSize()
164 opcode = *pc; in GetInstructionSize()
[all …]
/art/runtime/arch/arm64/
Dfault_handler_arm64.cc67 << static_cast<void*>(reinterpret_cast<uint8_t*>(sc->pc)); in GetMethodAndReturnPcAndSp()
69 *out_return_pc = sc->pc + 4; in GetMethodAndReturnPcAndSp()
85 *reinterpret_cast<uintptr_t*>(sc->sp) = sc->pc + 4; in Action()
88 sc->pc = reinterpret_cast<uintptr_t>(art_quick_throw_null_pointer_exception_from_signal); in Action()
111 uint8_t* ptr2 = reinterpret_cast<uint8_t*>(sc->pc); in Action()
142 sc->regs[30] = sc->pc + 4; in Action()
143 sc->pc = reinterpret_cast<uintptr_t>(art_quick_implicit_suspend); in Action()
182 sc->pc = reinterpret_cast<uintptr_t>(art_quick_throw_stack_overflow); in Action()
/art/runtime/
Doat_quick_method_header.h56 uintptr_t NativeQuickPcOffset(const uintptr_t pc) const { in NativeQuickPcOffset() argument
57 return pc - reinterpret_cast<uintptr_t>(GetEntryPoint()); in NativeQuickPcOffset()
103 bool Contains(uintptr_t pc) const { in Contains() argument
110 return code_start <= pc && pc <= (code_start + GetCodeSize()); in Contains()
143 uint32_t ToDexPc(ArtMethod* method, const uintptr_t pc, bool abort_on_failure = true) const;
Doat_quick_method_header.cc28 const uintptr_t pc, in ToDexPc() argument
31 uint32_t sought_offset = pc - reinterpret_cast<uintptr_t>(entry_point); in ToDexPc()
46 << "(PC " << reinterpret_cast<void*>(pc) << ", entry_point=" << entry_point in ToDexPc()
Dmonitor_android.cc72 uint32_t pc; in LogContentionEvent() local
73 ArtMethod* m = self->GetCurrentMethod(&pc); in LogContentionEvent()
75 TranslateLocation(m, pc, &filename, &line_number); in LogContentionEvent()
Dnative_stack_dump.cc293 static bool PcIsWithinQuickCode(ArtMethod* method, uintptr_t pc) NO_THREAD_SAFETY_ANALYSIS { in PcIsWithinQuickCode() argument
296 return pc == 0; in PcIsWithinQuickCode()
306 if (reinterpret_cast<uintptr_t>(GetQuickInstrumentationExitPc()) - pc <= 4) { in PcIsWithinQuickCode()
311 return code <= pc && pc <= (code + code_size); in PcIsWithinQuickCode()
367 it->pc); in DumpNativeStack()
393 PcIsWithinQuickCode(current_method, it->pc)) { in DumpNativeStack()
396 << (it->pc - reinterpret_cast<uint64_t>(start_of_code)); in DumpNativeStack()
Dart_method.cc573 const OatQuickMethodHeader* ArtMethod::GetOatQuickMethodHeader(uintptr_t pc) { in GetOatQuickMethodHeader() argument
576 DCHECK_NE(pc, reinterpret_cast<uintptr_t>(GetQuickInstrumentationExitPc())); in GetOatQuickMethodHeader()
601 if (method_header->Contains(pc)) { in GetOatQuickMethodHeader()
610 OatQuickMethodHeader* method_header = code_cache->LookupMethodHeader(pc, this); in GetOatQuickMethodHeader()
612 DCHECK(method_header->Contains(pc)); in GetOatQuickMethodHeader()
615 DCHECK(!code_cache->ContainsPc(reinterpret_cast<const void*>(pc))) in GetOatQuickMethodHeader()
617 << ", pc=" << std::hex << pc in GetOatQuickMethodHeader()
649 if (pc == 0) { in GetOatQuickMethodHeader()
655 DCHECK(method_header->Contains(pc)) in GetOatQuickMethodHeader()
657 << " " << std::hex << pc << " " << oat_entry_point in GetOatQuickMethodHeader()
Dbacktrace_helper.cc76 out_frames_[num_frames_++] = static_cast<uintptr_t>(it->pc); in Collect()
/art/compiler/debug/dwarf/
Ddwarf_test.cc46 int pc = 0; in TEST_F() local
48 pc += i; in TEST_F()
49 opcodes.AdvancePC(pc); in TEST_F()
244 uint32_t pc = 0x01000000; in TEST_F() local
247 opcodes.SetAddress(pc); in TEST_F()
256 pc += addr_delta; in TEST_F()
258 opcodes.AddRow(pc, line); in TEST_F()
260 ASSERT_EQ(opcodes.CurrentAddress(), pc); in TEST_F()
263 sprintf(expected, "%i 0x%x", line, pc); in TEST_F()
/art/compiler/debug/
Delf_debug_line_writer.h100 const uint32_t pc = stack_map.GetNativePcOffset(isa); in WriteCompilationUnit() local
102 pc2dex_map.push_back({pc, dex}); in WriteCompilationUnit()
105 prologue_end = std::min(prologue_end, pc); in WriteCompilationUnit()
225 uint32_t pc = pc2dex.from_; in WriteCompilationUnit() local
236 if (dex2line != dex2line_map.begin() && pc >= prologue_end) { in WriteCompilationUnit()
240 if (pc > 0) { in WriteCompilationUnit()
249 opcodes.AddRow(method_address + pc, line); in WriteCompilationUnit()
252 opcodes.AddRow(method_address + pc, line); in WriteCompilationUnit()
/art/compiler/utils/
Dassembler.cc96 uint32_t pc = dchecked_integral_cast<uint32_t>(assembler_->CodeSize()); in ImplicitlyAdvancePC() local
99 delayed_advance_pcs_.push_back(DelayedAdvancePC {stream_pos, pc}); in ImplicitlyAdvancePC()
101 AdvancePC(pc); in ImplicitlyAdvancePC()
Dassembler.h291 uint32_t pc; member
315 void OverrideDelayedPC(size_t pc) { in OverrideDelayedPC() argument
319 delayed_advance_pcs_.back().pc = pc; in OverrideDelayedPC()
/art/test/566-polymorphic-inlining/
Dpolymorphic_inline.cc39 const void* pc = method->GetEntryPointFromQuickCompiledCode(); in do_checks() local
40 if (code_cache->ContainsPc(pc)) { in do_checks()
41 header = OatQuickMethodHeader::FromEntryPoint(pc); in do_checks()
/art/compiler/utils/mips64/
Dconstants_mips64.h106 static Instr* At(uintptr_t pc) { return reinterpret_cast<Instr*>(pc); } in At() argument
/art/compiler/utils/x86/
Dconstants_x86.h106 static Instr* At(uintptr_t pc) { return reinterpret_cast<Instr*>(pc); } in At() argument
/art/compiler/utils/mips/
Dconstants_mips.h131 static Instr* At(uintptr_t pc) { return reinterpret_cast<Instr*>(pc); } in At() argument
/art/compiler/dex/
Dverified_method.cc53 bool VerifiedMethod::IsSafeCast(uint32_t pc) const { in IsSafeCast()
57 return std::binary_search(safe_cast_set_->begin(), safe_cast_set_->end(), pc); in IsSafeCast()
Dverified_method.h52 bool IsSafeCast(uint32_t pc) const;
/art/test/638-no-line-number/
Dinfo.txt1 Test for b/30183883, that we emit the dex pc when the line number is missing.
/art/test/680-checker-deopt-dex-pc-0/
Dinfo.txt1 Regression test for deoptimization at dex pc 0 causing infinite recursion
/art/runtime/arch/arm/
Dfault_handler_arm.cc41 static uint32_t GetInstructionSize(uint8_t* pc) { in GetInstructionSize() argument
42 uint16_t instr = pc[0] | pc[1] << 8; in GetInstructionSize()
/art/compiler/utils/x86_64/
Dconstants_x86_64.h130 static Instr* At(uintptr_t pc) { return reinterpret_cast<Instr*>(pc); } in At() argument
/art/compiler/trampolines/
Dtrampoline_compiler.cc63 using vixl::aarch32::pc; in CreateTrampoline()
69 ___ Ldr(pc, MemOperand(r0, offset.Int32Value())); in CreateTrampoline()
78 ___ Ldr(pc, MemOperand(temp_reg, offset.Int32Value())); in CreateTrampoline()
82 ___ Ldr(pc, MemOperand(tr, offset.Int32Value())); in CreateTrampoline()
/art/disassembler/
Ddisassembler_arm.cc38 using vixl::aarch32::pc;
88 DCHECK(!operand.GetBaseRegister().Is(pc)); in operator <<()
102 DCHECK(!operand.GetBaseRegister().Is(pc)); in operator <<()
/art/runtime/interpreter/mterp/arm/
Dmain.S245 add pc, rIBASE, \reg, lsl #${handler_size_bits}
248 add pc, \base, \reg, lsl #${handler_size_bits}
737 ldmfd sp!, {r3-r10,fp,pc} @ restore 10 regs and return
748 ldmfd sp!, {r3-r10,fp,pc} @ restore 10 regs and return

123