Home
last modified time | relevance | path

Searched refs:pc (Results 1 – 25 of 54) 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.h59 uintptr_t NativeQuickPcOffset(const uintptr_t pc) const { in NativeQuickPcOffset() argument
60 return pc - reinterpret_cast<uintptr_t>(GetEntryPoint()); in NativeQuickPcOffset()
136 bool Contains(uintptr_t pc) const { in Contains() argument
143 return code_start <= pc && pc <= (code_start + GetCodeSize()); in Contains()
175 uint32_t ToDexPc(ArtMethod* method, const uintptr_t pc, bool abort_on_failure = true) const;
Dnative_stack_dump.cc272 static bool PcIsWithinQuickCode(ArtMethod* method, uintptr_t pc) NO_THREAD_SAFETY_ANALYSIS { in PcIsWithinQuickCode() argument
276 return pc == 0; in PcIsWithinQuickCode()
279 return code <= pc && pc <= (code + code_size); in PcIsWithinQuickCode()
336 it->pc); in DumpNativeStack()
340 BacktraceMap::GetRelativePc(it->map, it->pc)); in DumpNativeStack()
351 PcIsWithinQuickCode(current_method, it->pc)) { in DumpNativeStack()
354 << (it->pc - reinterpret_cast<uintptr_t>(start_of_code)); in DumpNativeStack()
362 Addr2line(it->map.name, it->pc - it->map.start, os, prefix, &addr2line_state); in DumpNativeStack()
Doat_quick_method_header.cc39 const uintptr_t pc, in ToDexPc() argument
42 uint32_t sought_offset = pc - reinterpret_cast<uintptr_t>(entry_point); in ToDexPc()
58 << "(PC " << reinterpret_cast<void*>(pc) << ", entry_point=" << entry_point in ToDexPc()
Dmonitor_android.cc80 uint32_t pc; in LogContentionEvent() local
81 ArtMethod* m = self->GetCurrentMethod(&pc); in LogContentionEvent()
84 TranslateLocation(m, pc, &filename, &line_number); in LogContentionEvent()
Dart_method.cc601 const OatQuickMethodHeader* ArtMethod::GetOatQuickMethodHeader(uintptr_t pc) { in GetOatQuickMethodHeader() argument
604 DCHECK_NE(pc, reinterpret_cast<uintptr_t>(GetQuickInstrumentationExitPc())); in GetOatQuickMethodHeader()
632 if (method_header->Contains(pc)) { in GetOatQuickMethodHeader()
641 OatQuickMethodHeader* method_header = code_cache->LookupMethodHeader(pc, this); in GetOatQuickMethodHeader()
643 DCHECK(method_header->Contains(pc)); in GetOatQuickMethodHeader()
646 DCHECK(!code_cache->ContainsPc(reinterpret_cast<const void*>(pc))) in GetOatQuickMethodHeader()
648 << ", pc=" << std::hex << pc in GetOatQuickMethodHeader()
663 DCHECK_EQ(pc, 0u) << "Should be a downcall"; in GetOatQuickMethodHeader()
669 DCHECK_EQ(pc, 0u) << "Should be a downcall"; in GetOatQuickMethodHeader()
684 if (pc == 0) { in GetOatQuickMethodHeader()
[all …]
/art/compiler/debug/dwarf/
Ddwarf_test.cc48 int pc = 0; in TEST_F() local
50 pc += i; in TEST_F()
51 opcodes.AdvancePC(pc); in TEST_F()
252 uint32_t pc = 0x01000000; in TEST_F() local
255 opcodes.SetAddress(pc); in TEST_F()
264 pc += addr_delta; in TEST_F()
266 opcodes.AddRow(pc, line); in TEST_F()
268 ASSERT_EQ(opcodes.CurrentAddress(), pc); in TEST_F()
271 sprintf(expected, "%i 0x%x", line, pc); in TEST_F()
/art/compiler/debug/
Delf_debug_line_writer.h107 const uint32_t pc = stack_map.GetNativePcOffset(encoding.stack_map.encoding, isa); in WriteCompilationUnit() local
109 pc2dex_map.push_back({pc, dex}); in WriteCompilationUnit()
112 prologue_end = std::min(prologue_end, pc); in WriteCompilationUnit()
227 uint32_t pc = pc2dex.from_; in WriteCompilationUnit() local
238 if (dex2line != dex2line_map.begin() && pc >= prologue_end) { in WriteCompilationUnit()
242 if (pc > 0) { in WriteCompilationUnit()
251 opcodes.AddRow(method_address + pc, line); in WriteCompilationUnit()
254 opcodes.AddRow(method_address + pc, line); in WriteCompilationUnit()
/art/test/566-polymorphic-inlining/
Dpolymorphic_inline.cc38 const void* pc = method->GetEntryPointFromQuickCompiledCode(); in do_checks() local
39 if (code_cache->ContainsPc(pc)) { in do_checks()
40 header = OatQuickMethodHeader::FromEntryPoint(pc); in do_checks()
/art/compiler/utils/
Dassembler.cc114 uint32_t pc = dchecked_integral_cast<uint32_t>(assembler_->CodeSize()); in ImplicitlyAdvancePC() local
117 delayed_advance_pcs_.push_back(DelayedAdvancePC {stream_pos, pc}); in ImplicitlyAdvancePC()
119 AdvancePC(pc); in ImplicitlyAdvancePC()
Dassembler.h290 uint32_t pc; member
314 void OverrideDelayedPC(size_t pc) { in OverrideDelayedPC() argument
318 delayed_advance_pcs_.back().pc = pc; in OverrideDelayedPC()
/art/compiler/utils/mips64/
Dconstants_mips64.h105 static Instr* At(uintptr_t pc) { return reinterpret_cast<Instr*>(pc); } in At() argument
/art/compiler/utils/mips/
Dconstants_mips.h101 static Instr* At(uintptr_t pc) { return reinterpret_cast<Instr*>(pc); } in At() argument
/art/compiler/utils/x86/
Dconstants_x86.h120 static Instr* At(uintptr_t pc) { return reinterpret_cast<Instr*>(pc); } in At() argument
/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/compiler/dex/
Dverified_method.cc51 bool VerifiedMethod::IsSafeCast(uint32_t pc) const { in IsSafeCast()
52 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/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.h129 static Instr* At(uintptr_t pc) { return reinterpret_cast<Instr*>(pc); } in At() argument
/art/runtime/interpreter/mterp/mips/
Dop_filled_new_array.S14 JAL($helper) # v0 <- helper(shadow_frame, pc, self)
/art/compiler/trampolines/
Dtrampoline_compiler.cc62 using vixl::aarch32::pc; in CreateTrampoline()
68 ___ Ldr(pc, MemOperand(r0, offset.Int32Value())); in CreateTrampoline()
77 ___ Ldr(pc, MemOperand(temp_reg, offset.Int32Value())); in CreateTrampoline()
81 ___ Ldr(pc, MemOperand(tr, offset.Int32Value())); in CreateTrampoline()
/art/disassembler/
Ddisassembler_arm.cc38 using vixl::aarch32::pc;
90 DCHECK(!operand.GetBaseRegister().Is(pc)); in operator <<()
104 DCHECK(!operand.GetBaseRegister().Is(pc)); in operator <<()
/art/runtime/interpreter/mterp/arm/
Dheader.S242 add pc, rIBASE, \reg, lsl #${handler_size_bits}
245 add pc, \base, \reg, lsl #${handler_size_bits}
Dfooter.S284 ldmfd sp!, {r3-r10,fp,pc} @ restore 10 regs and return
295 ldmfd sp!, {r3-r10,fp,pc} @ restore 10 regs and return

123