Home
last modified time | relevance | path

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

/art/benchmark/scoped-primitive-array/
Dscoped_primitive_array.cc24 ScopedByteArrayRO sc(env, arr); in Java_ScopedPrimitiveArrayBenchmark_measureByteArray() local
25 ret += sc[0] + sc[sc.size() - 1]; in Java_ScopedPrimitiveArrayBenchmark_measureByteArray()
34 ScopedShortArrayRO sc(env, arr); in Java_ScopedPrimitiveArrayBenchmark_measureShortArray() local
35 ret += sc[0] + sc[sc.size() - 1]; in Java_ScopedPrimitiveArrayBenchmark_measureShortArray()
44 ScopedIntArrayRO sc(env, arr); in Java_ScopedPrimitiveArrayBenchmark_measureIntArray() local
45 ret += sc[0] + sc[sc.size() - 1]; in Java_ScopedPrimitiveArrayBenchmark_measureIntArray()
54 ScopedLongArrayRO sc(env, arr); in Java_ScopedPrimitiveArrayBenchmark_measureLongArray() local
55 ret += sc[0] + sc[sc.size() - 1]; in Java_ScopedPrimitiveArrayBenchmark_measureLongArray()
/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/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/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/
Dcheck_jni.cc1615 ScopedCheck sc(kFlag_Default, __FUNCTION__); in GetVersion() local
1617 if (sc.Check(soa, true, "E", args)) { in GetVersion()
1620 if (sc.Check(soa, false, "I", &result)) { in GetVersion()
1629 ScopedCheck sc(kFlag_Default, __FUNCTION__); in GetJavaVM() local
1631 if (sc.Check(soa, true, "Ep", args)) { in GetJavaVM()
1634 if (sc.Check(soa, false, "i", &result)) { in GetJavaVM()
1643 ScopedCheck sc(kFlag_Default, __FUNCTION__); in RegisterNatives() local
1645 if (sc.Check(soa, true, "EcpI", args)) { in RegisterNatives()
1648 if (sc.Check(soa, false, "i", &result)) { in RegisterNatives()
1657 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.cc419 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in nb_signalhandler() local
420 sc->arm_pc += 2; // Skip instruction causing segv & sigill. in nb_signalhandler()
423 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in nb_signalhandler()
424 sc->pc += 4; // Skip instruction causing segv & sigill. in nb_signalhandler()