Lines Matching full:thread
37 void ThrowException(LanguageContext ctx, ManagedThread *thread, const uint8_t *mutf8_name, const ui… in ThrowException() argument
39 ctx.ThrowException(thread, mutf8_name, mutf8_msg); in ThrowException()
42 static LanguageContext GetLanguageContext(ManagedThread *thread) in GetLanguageContext() argument
44 ASSERT(thread != nullptr); in GetLanguageContext()
46 StackWalker stack(thread); in GetLanguageContext()
57 auto *thread = ManagedThread::GetCurrent(); in ThrowNullPointerException() local
58 auto ctx = GetLanguageContext(thread); in ThrowNullPointerException()
59 ThrowNullPointerException(ctx, thread); in ThrowNullPointerException()
62 void ThrowNullPointerException(LanguageContext ctx, ManagedThread *thread) in ThrowNullPointerException() argument
64 ThrowException(ctx, thread, ctx.GetNullPointerExceptionClassDescriptor(), nullptr); in ThrowNullPointerException()
69 auto *thread = ManagedThread::GetCurrent(); in ThrowArrayIndexOutOfBoundsException() local
70 auto ctx = GetLanguageContext(thread); in ThrowArrayIndexOutOfBoundsException()
71 ThrowArrayIndexOutOfBoundsException(idx, length, ctx, thread); in ThrowArrayIndexOutOfBoundsException()
75 LanguageContext ctx, ManagedThread *thread) in ThrowArrayIndexOutOfBoundsException() argument
80 ThrowException(ctx, thread, ctx.GetArrayIndexOutOfBoundsExceptionClassDescriptor(), in ThrowArrayIndexOutOfBoundsException()
86 auto *thread = ManagedThread::GetCurrent(); in ThrowIndexOutOfBoundsException() local
87 auto ctx = GetLanguageContext(thread); in ThrowIndexOutOfBoundsException()
92 …ThrowException(ctx, thread, ctx.GetIndexOutOfBoundsExceptionClassDescriptor(), utf::CStringAsMutf8… in ThrowIndexOutOfBoundsException()
97 auto *thread = ManagedThread::GetCurrent(); in ThrowIllegalStateException() local
98 auto ctx = GetLanguageContext(thread); in ThrowIllegalStateException()
99 …ThrowException(ctx, thread, ctx.GetIllegalStateExceptionClassDescriptor(), utf::CStringAsMutf8(msg… in ThrowIllegalStateException()
104 auto *thread = ManagedThread::GetCurrent(); in ThrowStringIndexOutOfBoundsException() local
105 auto ctx = GetLanguageContext(thread); in ThrowStringIndexOutOfBoundsException()
110 ThrowException(ctx, thread, ctx.GetStringIndexOutOfBoundsExceptionClassDescriptor(), in ThrowStringIndexOutOfBoundsException()
116 auto *thread = ManagedThread::GetCurrent(); in ThrowNegativeArraySizeException() local
117 auto ctx = GetLanguageContext(thread); in ThrowNegativeArraySizeException()
122 …ThrowException(ctx, thread, ctx.GetNegativeArraySizeExceptionClassDescriptor(), utf::CStringAsMutf… in ThrowNegativeArraySizeException()
127 auto *thread = ManagedThread::GetCurrent(); in ThrowNegativeArraySizeException() local
128 auto ctx = GetLanguageContext(thread); in ThrowNegativeArraySizeException()
129 …ThrowException(ctx, thread, ctx.GetNegativeArraySizeExceptionClassDescriptor(), utf::CStringAsMutf… in ThrowNegativeArraySizeException()
134 auto *thread = ManagedThread::GetCurrent(); in ThrowArithmeticException() local
135 auto ctx = GetLanguageContext(thread); in ThrowArithmeticException()
136 …ThrowException(ctx, thread, ctx.GetArithmeticExceptionClassDescriptor(), utf::CStringAsMutf8("/ by… in ThrowArithmeticException()
141 auto *thread = ManagedThread::GetCurrent(); in ThrowClassCastException() local
142 auto ctx = GetLanguageContext(thread); in ThrowClassCastException()
147 …ThrowException(ctx, thread, ctx.GetClassCastExceptionClassDescriptor(), utf::CStringAsMutf8(msg.c_… in ThrowClassCastException()
152 auto *thread = ManagedThread::GetCurrent(); in ThrowAbstractMethodError() local
153 auto ctx = GetLanguageContext(thread); in ThrowAbstractMethodError()
160 …ThrowException(ctx, thread, ctx.GetAbstractMethodErrorClassDescriptor(), utf::CStringAsMutf8(msg.c… in ThrowAbstractMethodError()
172 auto *thread = ManagedThread::GetCurrent(); in ThrowArrayStoreException() local
173 auto ctx = GetLanguageContext(thread); in ThrowArrayStoreException()
175 …ThrowException(ctx, thread, ctx.GetArrayStoreExceptionClassDescriptor(), utf::CStringAsMutf8(msg.c… in ThrowArrayStoreException()
180 auto *thread = ManagedThread::GetCurrent(); in ThrowRuntimeException() local
181 auto ctx = GetLanguageContext(thread); in ThrowRuntimeException()
183 …ThrowException(ctx, thread, ctx.GetRuntimeExceptionClassDescriptor(), utf::CStringAsMutf8(msg.c_st… in ThrowRuntimeException()
188 auto *thread = ManagedThread::GetCurrent(); in ThrowIllegalArgumentException() local
189 auto ctx = GetLanguageContext(thread); in ThrowIllegalArgumentException()
191 …ThrowException(ctx, thread, ctx.GetIllegalArgumentExceptionClassDescriptor(), utf::CStringAsMutf8(… in ThrowIllegalArgumentException()
196 auto *thread = ManagedThread::GetCurrent(); in ThrowClassCircularityError() local
198 …ThrowException(ctx, thread, ctx.GetClassCircularityErrorDescriptor(), utf::CStringAsMutf8(msg.c_st… in ThrowClassCircularityError()
230 auto *thread = ManagedThread::GetCurrent(); in ThrowFileNotFoundException() local
231 auto ctx = GetLanguageContext(thread); in ThrowFileNotFoundException()
233 …ThrowException(ctx, thread, ctx.GetFileNotFoundExceptionClassDescriptor(), utf::CStringAsMutf8(msg… in ThrowFileNotFoundException()
238 auto *thread = ManagedThread::GetCurrent(); in ThrowIOException() local
239 auto ctx = GetLanguageContext(thread); in ThrowIOException()
241 …ThrowException(ctx, thread, ctx.GetIOExceptionClassDescriptor(), utf::CStringAsMutf8(msg.c_str())); in ThrowIOException()
246 auto *thread = ManagedThread::GetCurrent(); in ThrowIllegalAccessException() local
247 auto ctx = GetLanguageContext(thread); in ThrowIllegalAccessException()
249 …ThrowException(ctx, thread, ctx.GetIllegalAccessExceptionClassDescriptor(), utf::CStringAsMutf8(ms… in ThrowIllegalAccessException()
252 void ThrowOutOfMemoryError(ManagedThread *thread, const PandaString &msg) in ThrowOutOfMemoryError() argument
254 auto ctx = GetLanguageContext(thread); in ThrowOutOfMemoryError()
256 if (thread->IsThrowingOOM()) { in ThrowOutOfMemoryError()
257 thread->SetUsePreAllocObj(true); in ThrowOutOfMemoryError()
260 thread->SetThrowingOOM(true); in ThrowOutOfMemoryError()
261 …ThrowException(ctx, thread, ctx.GetOutOfMemoryErrorClassDescriptor(), utf::CStringAsMutf8(msg.c_st… in ThrowOutOfMemoryError()
262 thread->SetThrowingOOM(false); in ThrowOutOfMemoryError()
267 auto *thread = ManagedThread::GetCurrent(); in ThrowOutOfMemoryError() local
268 ThrowOutOfMemoryError(thread, msg); in ThrowOutOfMemoryError()
273 auto *thread = ManagedThread::GetCurrent(); in ThrowUnsupportedOperationException() local
274 auto ctx = GetLanguageContext(thread); in ThrowUnsupportedOperationException()
275 ThrowException(ctx, thread, ctx.GetUnsupportedOperationExceptionClassDescriptor(), nullptr); in ThrowUnsupportedOperationException()
280 auto *thread = ManagedThread::GetCurrent(); in ThrowVerificationException() local
281 auto ctx = GetLanguageContext(thread); in ThrowVerificationException()
283 …ThrowException(ctx, thread, ctx.GetVerifyErrorClassDescriptor(), utf::CStringAsMutf8(msg.c_str())); in ThrowVerificationException()
288 auto *thread = ManagedThread::GetCurrent(); in ThrowVerificationException() local
290 …ThrowException(ctx, thread, ctx.GetVerifyErrorClassDescriptor(), utf::CStringAsMutf8(msg.c_str())); in ThrowVerificationException()
295 auto *thread = ManagedThread::GetCurrent(); in ThrowInstantiationError() local
296 auto ctx = GetLanguageContext(thread); in ThrowInstantiationError()
298 …ThrowException(ctx, thread, ctx.GetInstantiationErrorDescriptor(), utf::CStringAsMutf8(msg.c_str()… in ThrowInstantiationError()
303 auto *thread = ManagedThread::GetCurrent(); in ThrowNoClassDefFoundError() local
304 auto ctx = GetLanguageContext(thread); in ThrowNoClassDefFoundError()
306 …ThrowException(ctx, thread, ctx.GetNoClassDefFoundErrorDescriptor(), utf::CStringAsMutf8(msg.c_str… in ThrowNoClassDefFoundError()
311 auto *thread = ManagedThread::GetCurrent(); in ThrowTypedErrorDyn() local
312 auto ctx = GetLanguageContext(thread); in ThrowTypedErrorDyn()
313 ThrowException(ctx, thread, ctx.GetTypedErrorDescriptor(), utf::CStringAsMutf8(msg.c_str())); in ThrowTypedErrorDyn()
318 auto *thread = ManagedThread::GetCurrent(); in ThrowReferenceErrorDyn() local
319 auto ctx = GetLanguageContext(thread); in ThrowReferenceErrorDyn()
320 … ThrowException(ctx, thread, ctx.GetReferenceErrorDescriptor(), utf::CStringAsMutf8(msg.c_str())); in ThrowReferenceErrorDyn()
325 auto *thread = ManagedThread::GetCurrent(); in ThrowIllegalMonitorStateException() local
326 auto ctx = GetLanguageContext(thread); in ThrowIllegalMonitorStateException()
328 …ThrowException(ctx, thread, ctx.GetIllegalMonitorStateExceptionDescriptor(), utf::CStringAsMutf8(m… in ThrowIllegalMonitorStateException()