Lines Matching refs:self

589   Thread* self = Thread::Current();  in HandleDeoptimization()  local
604 QuickExceptionHandler::DumpFramesWithType(self, true); in HandleDeoptimization()
610 self->PopDeoptimizationContext(/* out */ result, in HandleDeoptimization()
616 self->PushManagedStackFragment(fragment); in HandleDeoptimization()
631 EntireStackVisitor esv(self); in HandleDeoptimization()
638 self->SetException(pending_exception); in HandleDeoptimization()
640 interpreter::EnterInterpreterFromDeoptimize(self, in HandleDeoptimization()
647 extern "C" uint64_t artQuickToInterpreterBridge(ArtMethod* method, Thread* self, ArtMethod** sp) in artQuickToInterpreterBridge() argument
651 ScopedQuickEntrypointChecks sqec(self); in artQuickToInterpreterBridge()
659 ShadowFrame* deopt_frame = self->PopStackedShadowFrame( in artQuickToInterpreterBridge()
676 const char* old_cause = self->StartAssertNoThreadSuspension( in artQuickToInterpreterBridge()
688 self->PushManagedStackFragment(&fragment); in artQuickToInterpreterBridge()
689 self->PushShadowFrame(shadow_frame); in artQuickToInterpreterBridge()
690 self->EndAssertNoThreadSuspension(old_cause); in artQuickToInterpreterBridge()
696 StackHandleScope<1> hs(self); in artQuickToInterpreterBridge()
698 if (!Runtime::Current()->GetClassLinker()->EnsureInitialized(self, h_class, true, true)) { in artQuickToInterpreterBridge()
700 self->PopManagedStackFragment(fragment); in artQuickToInterpreterBridge()
706 result = interpreter::EnterInterpreterFromEntryPoint(self, accessor, shadow_frame); in artQuickToInterpreterBridge()
711 self->PopManagedStackFragment(fragment); in artQuickToInterpreterBridge()
722 (self->IsForceInterpreter() || Dbg::IsForcedInterpreterNeededForUpcall(self, caller)))) { in artQuickToInterpreterBridge()
731 if (force_frame_pop && self->GetException() != nullptr) { in artQuickToInterpreterBridge()
733 << self->GetException()->Dump(); in artQuickToInterpreterBridge()
737 self->PushDeoptimizationContext( in artQuickToInterpreterBridge()
740 force_frame_pop ? nullptr : self->GetException(), in artQuickToInterpreterBridge()
745 self->SetException(Thread::GetDeoptimizationException()); in artQuickToInterpreterBridge()
808 ArtMethod* proxy_method, mirror::Object* receiver, Thread* self, ArtMethod** sp) in artQuickProxyInvokeHandler() argument
814 self->StartAssertNoThreadSuspension("Adding to IRT proxy object arguments"); in artQuickProxyInvokeHandler()
817 self->VerifyStack(); in artQuickProxyInvokeHandler()
819 JNIEnvExt* env = self->GetJniEnv(); in artQuickProxyInvokeHandler()
843 self->EndAssertNoThreadSuspension(old_cause); in artQuickProxyInvokeHandler()
863 instr->MethodUnwindEvent(self, in artQuickProxyInvokeHandler()
873 instr->MethodUnwindEvent(self, in artQuickProxyInvokeHandler()
879 instr->MethodExitEvent(self, in artQuickProxyInvokeHandler()
1029 Thread* self, in artInstrumentationMethodEntryFromCode() argument
1035 ScopedQuickEntrypointChecks sqec(self, kIsDebugBuild, false); in artInstrumentationMethodEntryFromCode()
1066 ScopedObjectAccessUnchecked soa(self); in artInstrumentationMethodEntryFromCode()
1070 instrumentation->PushInstrumentationStackFrame(self, in artInstrumentationMethodEntryFromCode()
1079 if (UNLIKELY(self->IsExceptionPending())) { in artInstrumentationMethodEntryFromCode()
1086 extern "C" TwoWordReturn artInstrumentationMethodExitFromCode(Thread* self, in artInstrumentationMethodExitFromCode() argument
1091 DCHECK_EQ(reinterpret_cast<uintptr_t>(self), reinterpret_cast<uintptr_t>(Thread::Current())); in artInstrumentationMethodExitFromCode()
1095 CHECK(!self->IsExceptionPending()) << "Enter instrumentation exit stub with pending exception " in artInstrumentationMethodExitFromCode()
1096 << self->GetException()->Dump(); in artInstrumentationMethodExitFromCode()
1110 self, return_pc_addr, gpr_result, fpr_result); in artInstrumentationMethodExitFromCode()
1111 if (self->IsExceptionPending() || self->ObserveAsyncException()) { in artInstrumentationMethodExitFromCode()
1220 ArtMethod* called, mirror::Object* receiver, Thread* self, ArtMethod** sp) in artQuickResolutionTrampoline() argument
1225 ScopedQuickEntrypointChecks sqec(self, kIsDebugBuild, false); in artQuickResolutionTrampoline()
1227 JNIEnvExt* env = self->GetJniEnv(); in artQuickResolutionTrampoline()
1230 const char* old_cause = self->StartAssertNoThreadSuspension("Quick method resolution set up"); in artQuickResolutionTrampoline()
1309 self->EndAssertNoThreadSuspension(old_cause); in artQuickResolutionTrampoline()
1313 StackHandleScope<1> hs(self); in artQuickResolutionTrampoline()
1319 self, called_method.index, caller, invoke_type); in artQuickResolutionTrampoline()
1327 if (LIKELY(!self->IsExceptionPending())) { in artQuickResolutionTrampoline()
1381 DCHECK(self->IsExceptionPending()); in artQuickResolutionTrampoline()
1384 CHECK_EQ(code == nullptr, self->IsExceptionPending()); in artQuickResolutionTrampoline()
1814 uintptr_t* ComputeLayout(Thread* self, in ComputeLayout() argument
1827 HandleScope::Create(storage, self->GetTopHandleScope(), num_handle_scope_references_); in ComputeLayout()
1944 BuildGenericJniFrameVisitor(Thread* self, in BuildGenericJniFrameVisitor() argument
1959 fsc.ComputeLayout(self, managed_sp, shorty, shorty_len, &handle_scope_); in BuildGenericJniFrameVisitor()
1980 sm_.AdvancePointer(self->GetJniEnv()); in BuildGenericJniFrameVisitor()
1990 void FinalizeHandleScope(Thread* self) REQUIRES_SHARED(Locks::mutator_lock_);
2105 void BuildGenericJniFrameVisitor::FinalizeHandleScope(Thread* self) { in FinalizeHandleScope() argument
2110 self->PushHandleScope(handle_scope_); in FinalizeHandleScope()
2130 extern "C" const void* artQuickGenericJniTrampoline(Thread* self, in artQuickGenericJniTrampoline() argument
2145 BuildGenericJniFrameVisitor visitor(self, in artQuickGenericJniTrampoline()
2156 visitor.FinalizeHandleScope(self); in artQuickGenericJniTrampoline()
2160 self->SetTopOfStackTagged(managed_sp); in artQuickGenericJniTrampoline()
2162 self->VerifyStack(); in artQuickGenericJniTrampoline()
2167 jit->MethodEntered(self, called); in artQuickGenericJniTrampoline()
2177 StackHandleScope<1> hs(self); in artQuickGenericJniTrampoline()
2179 if (!runtime->GetClassLinker()->EnsureInitialized(self, h_class, true, true)) { in artQuickGenericJniTrampoline()
2181 self->PopHandleScope(); in artQuickGenericJniTrampoline()
2194 cookie = JniMethodStartSynchronized(visitor.GetFirstHandleScopeJObject(), self); in artQuickGenericJniTrampoline()
2195 if (self->IsExceptionPending()) { in artQuickGenericJniTrampoline()
2196 self->PopHandleScope(); in artQuickGenericJniTrampoline()
2201 cookie = JniMethodFastStart(self); in artQuickGenericJniTrampoline()
2204 cookie = JniMethodStart(self); in artQuickGenericJniTrampoline()
2227 extern uint64_t GenericJniMethodEnd(Thread* self,
2237 extern "C" uint64_t artQuickGenericJniEndTrampoline(Thread* self, in artQuickGenericJniEndTrampoline() argument
2244 ArtMethod** sp = self->GetManagedStack()->GetTopQuickFrame(); in artQuickGenericJniEndTrampoline()
2245 DCHECK(self->GetManagedStack()->GetTopQuickFrameTag()); in artQuickGenericJniEndTrampoline()
2250 BaseHandleScope* handle_scope = self->GetTopHandleScope(); in artQuickGenericJniEndTrampoline()
2257 return GenericJniMethodEnd(self, cookie, result, result_f, called); in artQuickGenericJniEndTrampoline()
2269 Thread* self, in artInvokeCommon() argument
2271 ScopedQuickEntrypointChecks sqec(self); in artInvokeCommon()
2281 ScopedObjectAccessUnchecked soa(self->GetJniEnv()); in artInvokeCommon()
2287 self); in artInvokeCommon()
2292 CHECK(self->IsExceptionPending()); in artInvokeCommon()
2296 DCHECK(!self->IsExceptionPending()); in artInvokeCommon()
2312 uint32_t method_idx, ObjPtr<mirror::Object> his_object, Thread* self, ArtMethod** sp)
2328 uint32_t method_idx, mirror::Object* this_object, Thread* self, ArtMethod** sp) in artInvokeInterfaceTrampolineWithAccessCheck() argument
2330 return artInvokeCommon<kInterface, true>(method_idx, this_object, self, sp); in artInvokeInterfaceTrampolineWithAccessCheck()
2334 uint32_t method_idx, mirror::Object* this_object, Thread* self, ArtMethod** sp) in artInvokeDirectTrampolineWithAccessCheck() argument
2336 return artInvokeCommon<kDirect, true>(method_idx, this_object, self, sp); in artInvokeDirectTrampolineWithAccessCheck()
2342 Thread* self, in artInvokeStaticTrampolineWithAccessCheck() argument
2346 return artInvokeCommon<kStatic, true>(method_idx, nullptr, self, sp); in artInvokeStaticTrampolineWithAccessCheck()
2350 uint32_t method_idx, mirror::Object* this_object, Thread* self, ArtMethod** sp) in artInvokeSuperTrampolineWithAccessCheck() argument
2352 return artInvokeCommon<kSuper, true>(method_idx, this_object, self, sp); in artInvokeSuperTrampolineWithAccessCheck()
2356 uint32_t method_idx, mirror::Object* this_object, Thread* self, ArtMethod** sp) in artInvokeVirtualTrampolineWithAccessCheck() argument
2358 return artInvokeCommon<kVirtual, true>(method_idx, this_object, self, sp); in artInvokeVirtualTrampolineWithAccessCheck()
2380 Thread* self, in artInvokeInterfaceTrampoline() argument
2383 ScopedQuickEntrypointChecks sqec(self); in artInvokeInterfaceTrampoline()
2384 StackHandleScope<2> hs(self); in artInvokeInterfaceTrampoline()
2415 ScopedObjectAccessUnchecked soa(self->GetJniEnv()); in artInvokeInterfaceTrampoline()
2420 self, dex_method_idx, caller_method, kInterface); in artInvokeInterfaceTrampoline()
2425 CHECK(self->IsExceptionPending()); in artInvokeInterfaceTrampoline()
2499 extern "C" uint64_t artInvokePolymorphic(mirror::Object* raw_receiver, Thread* self, ArtMethod** sp) in artInvokePolymorphic() argument
2501 ScopedQuickEntrypointChecks sqec(self); in artInvokePolymorphic()
2506 JNIEnvExt* env = self->GetJniEnv(); in artInvokePolymorphic()
2509 const char* old_cause = self->StartAssertNoThreadSuspension("Making stack arguments safe."); in artInvokePolymorphic()
2525 StackHandleScope<3> hs(self); in artInvokePolymorphic()
2528 self->EndAssertNoThreadSuspension(old_cause); in artInvokePolymorphic()
2533 self, inst.VRegB(), caller_method, kVirtual); in artInvokePolymorphic()
2536 hs.NewHandle(linker->ResolveMethodType(self, proto_idx, caller_method))); in artInvokePolymorphic()
2539 CHECK(self->IsExceptionPending()); in artInvokePolymorphic()
2557 frame_pusher(self, shadow_frame, StackedShadowFrameType::kShadowFrameUnderConstruction); in artInvokePolymorphic()
2568 self->PushManagedStackFragment(&fragment); in artInvokePolymorphic()
2580 success = MethodHandleInvokeExact(self, in artInvokePolymorphic()
2589 success = MethodHandleInvoke(self, in artInvokePolymorphic()
2602 success = VarHandleInvokeAccessor(self, in artInvokePolymorphic()
2611 DCHECK(success || self->IsExceptionPending()); in artInvokePolymorphic()
2614 self->PopManagedStackFragment(fragment); in artInvokePolymorphic()
2620 extern "C" uint64_t artInvokeCustom(uint32_t call_site_idx, Thread* self, ArtMethod** sp) in artInvokeCustom() argument
2622 ScopedQuickEntrypointChecks sqec(self); in artInvokeCustom()
2629 JNIEnvExt* env = self->GetJniEnv(); in artInvokeCustom()
2633 const char* old_cause = self->StartAssertNoThreadSuspension("Making stack arguments safe."); in artInvokeCustom()
2650 frame_pusher(self, shadow_frame, StackedShadowFrameType::kShadowFrameUnderConstruction); in artInvokeCustom()
2661 self->PushManagedStackFragment(&fragment); in artInvokeCustom()
2662 self->EndAssertNoThreadSuspension(old_cause); in artInvokeCustom()
2668 interpreter::DoInvokeCustom(self, *shadow_frame, call_site_idx, &operands, &result); in artInvokeCustom()
2669 DCHECK(success || self->IsExceptionPending()); in artInvokeCustom()
2672 self->PopManagedStackFragment(fragment); in artInvokeCustom()