/art/benchmark/scoped-primitive-array/ |
D | scoped_primitive_array.cc | 24 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/ |
D | fault_handler_arm.cc | 57 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 …]
|
D | instruction_set_features_arm.cc | 193 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/ |
D | fault_handler_arm64.cc | 47 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/ |
D | fault_handler_mips64.cc | 46 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/ |
D | fault_handler_mips.cc | 46 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/ |
D | check_jni.cc | 1615 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/ |
D | signaltest.cc | 59 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/ |
D | nativebridge.cc | 419 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()
|