Home
last modified time | relevance | path

Searched refs:sc (Results 1 – 9 of 9) sorted by relevance

/art/runtime/arch/arm/
Dfault_handler_arm.cc57 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in HandleNestedSignal() local
61 sc->arm_r0 = reinterpret_cast<uintptr_t>(*self->GetNestedSignalState()); in HandleNestedSignal()
62 sc->arm_r1 = 1; in HandleNestedSignal()
63 sc->arm_pc = reinterpret_cast<uintptr_t>(longjmp); in HandleNestedSignal()
64 VLOG(signals) << "longjmp address: " << reinterpret_cast<void*>(sc->arm_pc); in HandleNestedSignal()
71 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in GetMethodAndReturnPcAndSp() local
72 *out_sp = static_cast<uintptr_t>(sc->arm_sp); in GetMethodAndReturnPcAndSp()
80 uintptr_t* fault_addr = reinterpret_cast<uintptr_t*>(sc->fault_address); in GetMethodAndReturnPcAndSp()
84 *out_method = reinterpret_cast<ArtMethod*>(sc->arm_r0); in GetMethodAndReturnPcAndSp()
96 uint8_t* ptr = reinterpret_cast<uint8_t*>(sc->arm_pc); in GetMethodAndReturnPcAndSp()
[all …]
Dinstruction_set_features_arm.cc193 struct sigcontext *sc = &uc->uc_mcontext; in bad_divide_inst_handle() local
194 sc->arm_r0 = 0; // Set R0 to #0 to signal error. in bad_divide_inst_handle()
195 sc->arm_pc += 4; // Skip offending instruction. in bad_divide_inst_handle()
/art/runtime/arch/arm64/
Dfault_handler_arm64.cc47 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in HandleNestedSignal() local
51 sc->regs[0] = reinterpret_cast<uintptr_t>(*self->GetNestedSignalState()); in HandleNestedSignal()
52 sc->regs[1] = 1; in HandleNestedSignal()
53 sc->pc = reinterpret_cast<uintptr_t>(longjmp); in HandleNestedSignal()
60 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in GetMethodAndReturnPcAndSp() local
61 *out_sp = static_cast<uintptr_t>(sc->sp); in GetMethodAndReturnPcAndSp()
69 uintptr_t* fault_addr = reinterpret_cast<uintptr_t*>(sc->fault_address); in GetMethodAndReturnPcAndSp()
73 *out_method = reinterpret_cast<ArtMethod*>(sc->regs[0]); in GetMethodAndReturnPcAndSp()
82 << static_cast<void*>(reinterpret_cast<uint8_t*>(sc->pc)); in GetMethodAndReturnPcAndSp()
84 *out_return_pc = sc->pc + 4; in GetMethodAndReturnPcAndSp()
[all …]
/art/runtime/arch/mips/
Dfault_handler_mips.cc46 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in GetMethodAndReturnPcAndSp() local
47 *out_sp = static_cast<uintptr_t>(sc->sc_regs[29]); // SP register in GetMethodAndReturnPcAndSp()
59 *out_method = reinterpret_cast<ArtMethod*>(sc->sc_regs[4]); // A0 register in GetMethodAndReturnPcAndSp()
69 << static_cast<void*>(reinterpret_cast<uint8_t*>(sc->sc_pc)); in GetMethodAndReturnPcAndSp()
71 *out_return_pc = sc->sc_pc + 4; in GetMethodAndReturnPcAndSp()
81 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in Action() local
83 sc->sc_regs[31] = sc->sc_pc + 4; // RA needs to point to gc map location in Action()
84 sc->sc_pc = reinterpret_cast<uintptr_t>(art_quick_throw_null_pointer_exception); in Action()
85 sc->sc_regs[25] = sc->sc_pc; // make sure T9 points to the function in Action()
110 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in Action() local
[all …]
/art/runtime/arch/mips64/
Dfault_handler_mips64.cc46 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in GetMethodAndReturnPcAndSp() local
47 *out_sp = static_cast<uintptr_t>(sc->sc_regs[29]); // SP register in GetMethodAndReturnPcAndSp()
59 *out_method = reinterpret_cast<ArtMethod*>(sc->sc_regs[4]); // A0 register in GetMethodAndReturnPcAndSp()
69 << static_cast<void*>(reinterpret_cast<uint8_t*>(sc->sc_pc)); in GetMethodAndReturnPcAndSp()
71 *out_return_pc = sc->sc_pc + 4; in GetMethodAndReturnPcAndSp()
81 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in Action() local
83 sc->sc_regs[31] = sc->sc_pc + 4; // RA needs to point to gc map location in Action()
84 sc->sc_pc = reinterpret_cast<uintptr_t>(art_quick_throw_null_pointer_exception); in Action()
85 sc->sc_regs[25] = sc->sc_pc; // make sure T9 points to the function in Action()
110 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in Action() local
[all …]
/art/runtime/
Dcheck_jni.cc1433 ScopedCheck sc(kFlag_Default, __FUNCTION__); in GetVersion() local
1435 if (sc.Check(soa, true, "E", args)) { in GetVersion()
1438 if (sc.Check(soa, false, "I", &result)) { in GetVersion()
1447 ScopedCheck sc(kFlag_Default, __FUNCTION__); in GetJavaVM() local
1449 if (sc.Check(soa, true, "Ep", args)) { in GetJavaVM()
1452 if (sc.Check(soa, false, "i", &result)) { in GetJavaVM()
1461 ScopedCheck sc(kFlag_Default, __FUNCTION__); in RegisterNatives() local
1463 if (sc.Check(soa, true, "EcpI", args)) { in RegisterNatives()
1466 if (sc.Check(soa, false, "i", &result)) { in RegisterNatives()
1475 ScopedCheck sc(kFlag_Default, __FUNCTION__); in UnregisterNatives() local
[all …]
/art/test/004-SignalTest/
Dsignaltest.cc59 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in signalhandler() local
60 sc->arm_pc += 2; // Skip instruction causing segv. in signalhandler()
63 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in signalhandler() local
64 sc->pc += 4; // Skip instruction causing segv. in signalhandler()
/art/test/115-native-bridge/
Dnativebridge.cc390 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in nb_signalhandler() local
391 sc->arm_pc += 2; // Skip instruction causing segv. in nb_signalhandler()
394 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in nb_signalhandler() local
395 sc->pc += 4; // Skip instruction causing segv. in nb_signalhandler()
/art/compiler/optimizing/
Dgraph_checker.cc64 for (auto& sc : successors_count) { in VisitBasicBlock() local
65 HBasicBlock* s = sc.first; in VisitBasicBlock()
66 size_t s_count_in_block_successors = sc.second; in VisitBasicBlock()