/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 | 52 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in GetMethodAndReturnPcAndSp() local 53 *out_sp = static_cast<uintptr_t>(sc->arm_sp); in GetMethodAndReturnPcAndSp() 61 uintptr_t* fault_addr = reinterpret_cast<uintptr_t*>(sc->fault_address); in GetMethodAndReturnPcAndSp() 65 *out_method = reinterpret_cast<ArtMethod*>(sc->arm_r0); in GetMethodAndReturnPcAndSp() 77 uint8_t* ptr = reinterpret_cast<uint8_t*>(sc->arm_pc); in GetMethodAndReturnPcAndSp() 88 *out_return_pc = (sc->arm_pc + instr_size) | 1; in GetMethodAndReturnPcAndSp() 103 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in Action() local 104 uint8_t* ptr = reinterpret_cast<uint8_t*>(sc->arm_pc); in Action() 106 uintptr_t gc_map_location = (sc->arm_pc + instr_size) | 1; in Action() 109 sc->arm_sp -= sizeof(uintptr_t); in Action() [all …]
|
D | instruction_set_features_arm.cc | 224 struct sigcontext *sc = &uc->uc_mcontext; in bad_instr_handle() local 225 sc->arm_r0 = 0; // Set R0 to #0 to signal error. in bad_instr_handle() 226 sc->arm_pc += 4; // Skip offending instruction. in bad_instr_handle()
|
/art/runtime/arch/arm64/ |
D | fault_handler_arm64.cc | 45 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in GetMethodAndReturnPcAndSp() local 46 *out_sp = static_cast<uintptr_t>(sc->sp); in GetMethodAndReturnPcAndSp() 54 uintptr_t* fault_addr = reinterpret_cast<uintptr_t*>(sc->fault_address); in GetMethodAndReturnPcAndSp() 58 *out_method = reinterpret_cast<ArtMethod*>(sc->regs[0]); in GetMethodAndReturnPcAndSp() 67 << static_cast<void*>(reinterpret_cast<uint8_t*>(sc->pc)); in GetMethodAndReturnPcAndSp() 69 *out_return_pc = sc->pc + 4; in GetMethodAndReturnPcAndSp() 81 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in Action() local 84 sc->sp -= sizeof(uintptr_t); in Action() 85 *reinterpret_cast<uintptr_t*>(sc->sp) = sc->pc + 4; in Action() 86 sc->regs[30] = reinterpret_cast<uintptr_t>(info->si_addr); in Action() [all …]
|
/art/runtime/arch/mips64/ |
D | fault_handler_mips64.cc | 44 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in GetMethodAndReturnPcAndSp() local 45 *out_sp = static_cast<uintptr_t>(sc->sc_regs[mips64::SP]); in GetMethodAndReturnPcAndSp() 57 *out_method = reinterpret_cast<ArtMethod*>(sc->sc_regs[mips64::A0]); in GetMethodAndReturnPcAndSp() 67 << static_cast<void*>(reinterpret_cast<uint8_t*>(sc->sc_pc)); in GetMethodAndReturnPcAndSp() 69 *out_return_pc = sc->sc_pc + 4; in GetMethodAndReturnPcAndSp() 82 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in Action() local 86 sc->sc_regs[mips64::SP] -= mips64::Mips64CalleeSaveFrameSize(CalleeSaveType::kSaveEverything); in Action() 87 uintptr_t* padding = reinterpret_cast<uintptr_t*>(sc->sc_regs[mips64::SP]) + /* ArtMethod* */ 1; in Action() 90 sc->sc_regs[mips64::RA] = sc->sc_pc + 4; // RA needs to point to gc map location in Action() 91 sc->sc_pc = reinterpret_cast<uintptr_t>(art_quick_throw_null_pointer_exception_from_signal); in Action() [all …]
|
D | quick_entrypoints_mips64.S | 1235 sc $t2, MIRROR_OBJECT_LOCK_WORD_OFFSET($a0) 1304 sc $t2, MIRROR_OBJECT_LOCK_WORD_OFFSET($a0) 1315 sc $t2, MIRROR_OBJECT_LOCK_WORD_OFFSET($a0)
|
/art/runtime/arch/mips/ |
D | fault_handler_mips.cc | 43 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in GetMethodAndReturnPcAndSp() local 44 *out_sp = static_cast<uintptr_t>(sc->sc_regs[mips::SP]); in GetMethodAndReturnPcAndSp() 56 *out_method = reinterpret_cast<ArtMethod*>(sc->sc_regs[mips::A0]); in GetMethodAndReturnPcAndSp() 66 << static_cast<void*>(reinterpret_cast<uint8_t*>(sc->sc_pc)); in GetMethodAndReturnPcAndSp() 68 *out_return_pc = sc->sc_pc + 4; in GetMethodAndReturnPcAndSp() 80 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in Action() local 84 sc->sc_regs[mips::SP] -= mips::MipsCalleeSaveFrameSize(CalleeSaveType::kSaveEverything); in Action() 85 uintptr_t* padding = reinterpret_cast<uintptr_t*>(sc->sc_regs[mips::SP]) + /* ArtMethod* */ 1; in Action() 88 sc->sc_regs[mips::RA] = sc->sc_pc + 4; // RA needs to point to gc map location in Action() 89 sc->sc_pc = reinterpret_cast<uintptr_t>(art_quick_throw_null_pointer_exception_from_signal); in Action() [all …]
|
D | quick_entrypoints_mips.S | 1264 sc $t2, MIRROR_OBJECT_LOCK_WORD_OFFSET($a0) 1336 sc $t2, MIRROR_OBJECT_LOCK_WORD_OFFSET($a0) 1349 sc $t2, MIRROR_OBJECT_LOCK_WORD_OFFSET($a0)
|
/art/runtime/ |
D | check_jni.cc | 1629 ScopedCheck sc(kFlag_Default, __FUNCTION__); in GetVersion() local 1631 if (sc.Check(soa, true, "E", args)) { in GetVersion() 1634 if (sc.Check(soa, false, "I", &result)) { in GetVersion() 1643 ScopedCheck sc(kFlag_Default, __FUNCTION__); in GetJavaVM() local 1645 if (sc.Check(soa, true, "Ep", args)) { in GetJavaVM() 1648 if (sc.Check(soa, false, "i", &result)) { in GetJavaVM() 1657 ScopedCheck sc(kFlag_Default, __FUNCTION__); in RegisterNatives() local 1659 if (sc.Check(soa, true, "EcpI", args)) { in RegisterNatives() 1662 if (sc.Check(soa, false, "i", &result)) { in RegisterNatives() 1671 ScopedCheck sc(kFlag_Default, __FUNCTION__); in UnregisterNatives() local [all …]
|
/art/test/004-SignalTest/ |
D | signaltest.cc | 81 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in signalhandler() local 82 sc->arm_pc += 2; // Skip instruction causing segv. in signalhandler() 85 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in signalhandler() local 86 sc->pc += 4; // Skip instruction causing segv. in signalhandler()
|
/art/test/115-native-bridge/ |
D | nativebridge.cc | 543 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in StandardSignalHandler() local 544 sc->arm_pc += 2; // Skip instruction causing segv & sigill. in StandardSignalHandler() 547 struct sigcontext *sc = reinterpret_cast<struct sigcontext*>(&uc->uc_mcontext); in StandardSignalHandler() 548 sc->pc += 4; // Skip instruction causing segv & sigill. in StandardSignalHandler()
|