Lines Matching refs:self

27 static void UnstartedRuntimeJni(Thread* self, ArtMethod* method,  in UnstartedRuntimeJni()  argument
36 mirror::Class* array_class = runtime->GetClassLinker()->FindArrayClass(self, &element_class); in UnstartedRuntimeJni()
39 result->SetL(mirror::Array::Alloc<true>(self, array_class, length, in UnstartedRuntimeJni()
44 NthCallerVisitor visitor(self, 3); in UnstartedRuntimeJni()
52 StackHandleScope<1> hs(self); in UnstartedRuntimeJni()
63 result->SetL(receiver->Clone(self)); in UnstartedRuntimeJni()
65 receiver->NotifyAll(self); in UnstartedRuntimeJni()
75 StackHandleScope<2> hs(self); in UnstartedRuntimeJni()
78 result->SetL(Array::CreateMultiArray(self, h_class, h_dimensions)); in UnstartedRuntimeJni()
80 ScopedObjectAccessUnchecked soa(self); in UnstartedRuntimeJni()
82 result->SetL(soa.Decode<Object*>(self->CreateInternalStackTrace<true>(soa))); in UnstartedRuntimeJni()
84 result->SetL(soa.Decode<Object*>(self->CreateInternalStackTrace<false>(soa))); in UnstartedRuntimeJni()
123 AbortTransaction(self, "Attempt to invoke native method in non-started runtime: %s", in UnstartedRuntimeJni()
132 static void InterpreterJni(Thread* self, ArtMethod* method, const StringPiece& shorty, in InterpreterJni() argument
137 ScopedObjectAccessUnchecked soa(self); in InterpreterJni()
146 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
155 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
162 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
169 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
176 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
187 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
196 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
206 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
213 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
220 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
231 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
242 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
251 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
262 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
276 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
285 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
296 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
300 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
306 ScopedThreadStateChange tsc(self, kNative); in InterpreterJni()
326 JValue ExecuteGotoImpl(Thread* self, MethodHelper& mh, const DexFile::CodeItem* code_item, in ExecuteGotoImpl() argument
333 JValue ExecuteGotoImpl<true, false>(Thread* self, MethodHelper& mh,
337 JValue ExecuteGotoImpl<false, false>(Thread* self, MethodHelper& mh,
341 JValue ExecuteGotoImpl<true, true>(Thread* self, MethodHelper& mh,
345 JValue ExecuteGotoImpl<false, true>(Thread* self, MethodHelper& mh,
350 static JValue Execute(Thread* self, MethodHelper& mh, const DexFile::CodeItem* code_item,
354 static inline JValue Execute(Thread* self, MethodHelper& mh, const DexFile::CodeItem* code_item, in Execute() argument
360 shadow_frame.GetMethod()->GetDeclaringClass()->AssertInitializedOrInitializingInThread(self); in Execute()
367 return ExecuteSwitchImpl<false, true>(self, mh, code_item, shadow_frame, result_register); in Execute()
369 return ExecuteSwitchImpl<false, false>(self, mh, code_item, shadow_frame, result_register); in Execute()
374 return ExecuteGotoImpl<false, true>(self, mh, code_item, shadow_frame, result_register); in Execute()
376 return ExecuteGotoImpl<false, false>(self, mh, code_item, shadow_frame, result_register); in Execute()
383 return ExecuteSwitchImpl<true, true>(self, mh, code_item, shadow_frame, result_register); in Execute()
385 return ExecuteSwitchImpl<true, false>(self, mh, code_item, shadow_frame, result_register); in Execute()
390 return ExecuteGotoImpl<true, true>(self, mh, code_item, shadow_frame, result_register); in Execute()
392 return ExecuteGotoImpl<true, false>(self, mh, code_item, shadow_frame, result_register); in Execute()
398 void EnterInterpreterFromInvoke(Thread* self, ArtMethod* method, Object* receiver, in EnterInterpreterFromInvoke() argument
400 DCHECK_EQ(self, Thread::Current()); in EnterInterpreterFromInvoke()
402 if (UNLIKELY(__builtin_frame_address(0) < self->GetStackEndForInterpreter(implicit_check))) { in EnterInterpreterFromInvoke()
403 ThrowStackOverflowError(self); in EnterInterpreterFromInvoke()
407 const char* old_cause = self->StartAssertNoThreadSuspension("EnterInterpreterFromInvoke"); in EnterInterpreterFromInvoke()
415 self->EndAssertNoThreadSuspension(old_cause); in EnterInterpreterFromInvoke()
427 ShadowFrame* last_shadow_frame = self->GetManagedStack()->GetTopShadowFrame(); in EnterInterpreterFromInvoke()
430 self->PushShadowFrame(shadow_frame); in EnterInterpreterFromInvoke()
460 self->EndAssertNoThreadSuspension(old_cause); in EnterInterpreterFromInvoke()
464 StackHandleScope<1> hs(self); in EnterInterpreterFromInvoke()
467 CHECK(self->IsExceptionPending()); in EnterInterpreterFromInvoke()
468 self->PopShadowFrame(); in EnterInterpreterFromInvoke()
473 StackHandleScope<1> hs(self); in EnterInterpreterFromInvoke()
475 JValue r = Execute(self, mh, code_item, *shadow_frame, JValue()); in EnterInterpreterFromInvoke()
486 UnstartedRuntimeJni(self, method, receiver, args, result); in EnterInterpreterFromInvoke()
488 InterpreterJni(self, method, shorty, receiver, args, result); in EnterInterpreterFromInvoke()
491 self->PopShadowFrame(); in EnterInterpreterFromInvoke()
494 void EnterInterpreterFromDeoptimize(Thread* self, ShadowFrame* shadow_frame, JValue* ret_val) in EnterInterpreterFromDeoptimize() argument
499 self->SetTopOfShadowStack(shadow_frame); in EnterInterpreterFromDeoptimize()
500 StackHandleScope<1> hs(self); in EnterInterpreterFromDeoptimize()
505 if (UNLIKELY(self->IsExceptionPending())) { in EnterInterpreterFromDeoptimize()
508 uint32_t found_dex_pc = FindNextInstructionFollowingException(self, *shadow_frame, dex_pc, in EnterInterpreterFromDeoptimize()
518 value = Execute(self, mh, code_item, *shadow_frame, value); in EnterInterpreterFromDeoptimize()
527 JValue EnterInterpreterFromStub(Thread* self, MethodHelper& mh, const DexFile::CodeItem* code_item, in EnterInterpreterFromStub() argument
529 DCHECK_EQ(self, Thread::Current()); in EnterInterpreterFromStub()
531 if (UNLIKELY(__builtin_frame_address(0) < self->GetStackEndForInterpreter(implicit_check))) { in EnterInterpreterFromStub()
532 ThrowStackOverflowError(self); in EnterInterpreterFromStub()
536 return Execute(self, mh, code_item, shadow_frame, JValue()); in EnterInterpreterFromStub()
539 extern "C" void artInterpreterToInterpreterBridge(Thread* self, MethodHelper& mh, in artInterpreterToInterpreterBridge() argument
543 if (UNLIKELY(__builtin_frame_address(0) < self->GetStackEndForInterpreter(implicit_check))) { in artInterpreterToInterpreterBridge()
544 ThrowStackOverflowError(self); in artInterpreterToInterpreterBridge()
548 self->PushShadowFrame(shadow_frame); in artInterpreterToInterpreterBridge()
554 StackHandleScope<1> hs(self); in artInterpreterToInterpreterBridge()
558 DCHECK(self->IsExceptionPending()); in artInterpreterToInterpreterBridge()
559 self->PopShadowFrame(); in artInterpreterToInterpreterBridge()
567 result->SetJ(Execute(self, mh, code_item, *shadow_frame, JValue()).GetJ()); in artInterpreterToInterpreterBridge()
574 UnstartedRuntimeJni(self, method, receiver, args, result); in artInterpreterToInterpreterBridge()
577 self->PopShadowFrame(); in artInterpreterToInterpreterBridge()