Home
last modified time | relevance | path

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

123

/art/runtime/arch/x86/
Dfault_handler_x86.cc81 static uint32_t GetInstructionSize(const uint8_t* pc, size_t bytes) { in GetInstructionSize() argument
88 ++pc; \ in GetInstructionSize()
91 #define FETCH_BYTE(var) FETCH_OR_SKIP_BYTE((var) = *pc) in GetInstructionSize()
100 const uint8_t* startpc = pc; in GetInstructionSize()
252 pc += displacement_size + immediate_size; in GetInstructionSize()
254 VLOG(signals) << "x86 instruction length calculated as " << (pc - startpc); in GetInstructionSize()
255 return pc - startpc; in GetInstructionSize()
299 uintptr_t pc = uc->CTX_EIP; in Action() local
300 const OatQuickMethodHeader* method_header = method->GetOatQuickMethodHeader(pc); in Action()
305 const uint8_t* pc_ptr = reinterpret_cast<const uint8_t*>(pc); in Action()
[all …]
/art/test/680-checker-deopt-dex-pc-0/
DAndroid.bp3 // Build rules for ART run-test `680-checker-deopt-dex-pc-0`.
16 name: "art-run-test-680-checker-deopt-dex-pc-0",
21 ":art-run-test-680-checker-deopt-dex-pc-0-expected-stdout",
22 ":art-run-test-680-checker-deopt-dex-pc-0-expected-stderr",
31 name: "art-run-test-680-checker-deopt-dex-pc-0-expected-stdout",
32 out: ["art-run-test-680-checker-deopt-dex-pc-0-expected-stdout.txt"],
39 name: "art-run-test-680-checker-deopt-dex-pc-0-expected-stderr",
40 out: ["art-run-test-680-checker-deopt-dex-pc-0-expected-stderr.txt"],
Dinfo.txt1 Regression test for deoptimization at dex pc 0 causing infinite recursion
/art/runtime/arch/arm64/
Dfault_handler_arm64.cc56 return mc->pc; in GetFaultPc()
80 uintptr_t return_pc = mc->pc + 4u; in Action()
91 mc->pc = reinterpret_cast<uintptr_t>(art_quick_throw_null_pointer_exception_from_signal); in Action()
108 uint32_t inst = *reinterpret_cast<uint32_t*>(mc->pc); in Action()
120 mc->regs[30] = mc->pc + 4; in Action()
122 mc->pc = reinterpret_cast<uintptr_t>(art_quick_implicit_suspend); in Action()
160 mc->pc = reinterpret_cast<uintptr_t>(art_quick_throw_stack_overflow); in Action()
/art/runtime/
Doat_quick_method_header.h47 static bool IsNterpPc(uintptr_t pc) { in IsNterpPc() argument
49 OatQuickMethodHeader::NterpMethodHeader->Contains(pc); in IsNterpPc()
72 uintptr_t NativeQuickPcOffset(const uintptr_t pc) const { in NativeQuickPcOffset() argument
73 return pc - reinterpret_cast<uintptr_t>(GetEntryPoint()); in NativeQuickPcOffset()
115 bool Contains(uintptr_t pc) const { in Contains() argument
125 return code_start <= pc && pc <= (code_start + GetCodeSize()); in Contains()
176 const uintptr_t pc,
Dmonitor_android.cc73 uint32_t pc; in LogContentionEvent() local
74 ArtMethod* m = self->GetCurrentMethod(&pc); in LogContentionEvent()
75 TranslateLocation(m, pc, &filename, &line_number); in LogContentionEvent()
Doat_quick_method_header.cc31 const uintptr_t pc, in ToDexPc() argument
35 uint32_t sought_offset = pc - reinterpret_cast<uintptr_t>(entry_point); in ToDexPc()
51 << "(PC " << reinterpret_cast<void*>(pc) << ", entry_point=" << entry_point in ToDexPc()
Dart_method.cc587 const OatQuickMethodHeader* ArtMethod::GetOatQuickMethodHeader(uintptr_t pc) { in GetOatQuickMethodHeader() argument
607 DCHECK_NE(pc, 0u) << "PC 0 for " << PrettyMethod(); in GetOatQuickMethodHeader()
617 if (method_header->Contains(pc)) { in GetOatQuickMethodHeader()
622 if (OatQuickMethodHeader::IsNterpPc(pc)) { in GetOatQuickMethodHeader()
630 OatQuickMethodHeader* method_header = code_cache->LookupMethodHeader(pc, this); in GetOatQuickMethodHeader()
632 DCHECK(method_header->Contains(pc)); in GetOatQuickMethodHeader()
635 DCHECK(!code_cache->ContainsPc(reinterpret_cast<const void*>(pc))) in GetOatQuickMethodHeader()
637 << ", pc=" << std::hex << pc in GetOatQuickMethodHeader()
657 << " pc: " << reinterpret_cast<const void*>(pc); in GetOatQuickMethodHeader()
671 if (IsNative() && !method_header->Contains(pc)) { in GetOatQuickMethodHeader()
[all …]
Dnative_stack_dump.cc376 os << StringPrintf("%08" PRIx64 " ???", frame.pc); in DumpNativeStack()
403 const OatQuickMethodHeader* header = current_method->GetOatQuickMethodHeader(frame.pc); in DumpNativeStack()
407 << (frame.pc - reinterpret_cast<uint64_t>(start_of_code)); in DumpNativeStack()
Dstack_map.cc83 StackMap CodeInfo::GetStackMapForNativePcOffset(uintptr_t pc, InstructionSet isa) const { in GetStackMapForNativePcOffset() argument
84 uint32_t packed_pc = StackMap::PackNativePc(pc, isa); in GetStackMapForNativePcOffset()
93 for (; it != stack_maps_.end() && (*it).GetNativePcOffset(isa) == pc; ++it) { in GetStackMapForNativePcOffset()
/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()
41 OatQuickMethodHeader::FromEntryPoint(pc)->GetOptimizedCodeInfoPtr())) { in do_checks()
42 header = OatQuickMethodHeader::FromEntryPoint(pc); in do_checks()
/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()
251 uint32_t pc = 0x01000000; in TEST_F() local
254 opcodes.SetAddress(pc); in TEST_F()
263 pc += addr_delta; in TEST_F()
265 opcodes.AddRow(pc, line); in TEST_F()
267 ASSERT_EQ(opcodes.CurrentAddress(), pc); in TEST_F()
270 sprintf(expected, "0x%016x %6i 0 1 0 0", pc, line); 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.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/x86/
Dconstants_x86.h99 static Instr* At(uintptr_t pc) { return reinterpret_cast<Instr*>(pc); } in At() argument
/art/compiler/trampolines/
Dtrampoline_compiler.cc55 using vixl::aarch32::pc; in CreateTrampoline()
61 ___ Ldr(pc, MemOperand(r0, offset.Int32Value())); in CreateTrampoline()
70 ___ Ldr(pc, MemOperand(temp_reg, offset.Int32Value())); in CreateTrampoline()
74 ___ Ldr(pc, MemOperand(tr, offset.Int32Value())); in CreateTrampoline()
/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/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()
Dmemcmp16_arm.S153 pop {r4, pc}
163 pop {r4, pc}
174 pop {r4, pc}
/art/compiler/utils/x86_64/
Dconstants_x86_64.h129 static Instr* At(uintptr_t pc) { return reinterpret_cast<Instr*>(pc); } in At() argument
/art/disassembler/
Ddisassembler_arm.cc38 using vixl::aarch32::pc;
104 DCHECK(!operand.GetBaseRegister().Is(pc)); in operator <<()
118 DCHECK(!operand.GetBaseRegister().Is(pc)); in operator <<()
/art/runtime/jit/
Djit_code_cache.h129 const void* GetCodeFor(ArtMethod* method, uintptr_t pc = 0) const;
227 bool ContainsPc(const void* pc) const;
230 bool PrivateRegionContainsPc(const void* pc) const;
292 OatQuickMethodHeader* LookupMethodHeader(uintptr_t pc, ArtMethod* method)
Djit_code_cache.cc1406 OatQuickMethodHeader* JitCodeCache::LookupMethodHeader(uintptr_t pc, ArtMethod* method) { in LookupMethodHeader() argument
1410 --pc; in LookupMethodHeader()
1412 if (!ContainsPc(reinterpret_cast<const void*>(pc))) { in LookupMethodHeader()
1433 if (!method_header->Contains(pc)) { in LookupMethodHeader()
1437 if (shared_region_.IsInExecSpace(reinterpret_cast<const void*>(pc))) { in LookupMethodHeader()
1438 const void* code_ptr = zygote_map_.GetCodeFor(method, pc); in LookupMethodHeader()
1443 auto it = method_code_map_.lower_bound(reinterpret_cast<const void*>(pc)); in LookupMethodHeader()
1447 if (OatQuickMethodHeader::FromCodePointer(code_ptr)->Contains(pc)) { in LookupMethodHeader()
1458 OatQuickMethodHeader::FromCodePointer(data.GetCode())->Contains(pc)) { in LookupMethodHeader()
1472 << std::hex << pc; in LookupMethodHeader()
[all …]
/art/openjdkjvmti/
Dti_breakpoint.cc58 JvmtiBreakpointReflectionSource(size_t pc, art::ArtMethod* m) in JvmtiBreakpointReflectionSource() argument
60 pc_(pc), in JvmtiBreakpointReflectionSource()

123