Lines Matching refs:exception_header
53 thrown_object_from_cxa_exception(__cxa_exception* exception_header) in thrown_object_from_cxa_exception() argument
55 return static_cast<void*>(exception_header + 1); in thrown_object_from_cxa_exception()
135 …__cxa_exception* exception_header = cxa_exception_from_exception_unwind_exception(unwind_exception… in exception_cleanup_func() local
137 std::__terminate(exception_header->terminateHandler); in exception_cleanup_func()
143 static _LIBCXXABI_NORETURN void failed_throw(__cxa_exception* exception_header) { in failed_throw() argument
151 (void) __cxa_begin_catch(&exception_header->unwindHeader); in failed_throw()
152 std::__terminate(exception_header->terminateHandler); in failed_throw()
193 __cxa_exception *exception_header = in __cxa_allocate_exception() local
195 ::memset(exception_header, 0, actual_size); in __cxa_allocate_exception()
196 return thrown_object_from_cxa_exception(exception_header); in __cxa_allocate_exception()
216 __cxa_exception* exception_header = cxa_exception_from_thrown_object(object); in __cxa_init_primary_exception() local
217 exception_header->referenceCount = 0; in __cxa_init_primary_exception()
218 exception_header->unexpectedHandler = std::get_unexpected(); in __cxa_init_primary_exception()
219 exception_header->terminateHandler = std::get_terminate(); in __cxa_init_primary_exception()
220 exception_header->exceptionType = tinfo; in __cxa_init_primary_exception()
221 exception_header->exceptionDestructor = dest; in __cxa_init_primary_exception()
222 setOurExceptionClass(&exception_header->unwindHeader); in __cxa_init_primary_exception()
223 exception_header->unwindHeader.exception_cleanup = exception_cleanup_func; in __cxa_init_primary_exception()
225 return exception_header; in __cxa_init_primary_exception()
284 __cxa_exception* exception_header = __cxa_init_primary_exception(thrown_object, tinfo, dest); in __cxa_init_primary_exception() local
285 …exception_header->referenceCount = 1; // This is a newly allocated exception, no need for thread s… in __cxa_init_primary_exception()
293 _Unwind_SjLj_RaiseException(&exception_header->unwindHeader); in __cxa_init_primary_exception()
295 _Unwind_RaiseException(&exception_header->unwindHeader); in __cxa_init_primary_exception()
299 failed_throw(exception_header); in __cxa_init_primary_exception()
329 __cxa_exception* exception_header = in __cxa_init_primary_exception() local
334 if (0 == exception_header->propagationCount) in __cxa_init_primary_exception()
336 exception_header->nextPropagatingException = globals->propagatingExceptions; in __cxa_init_primary_exception()
337 globals->propagatingExceptions = exception_header; in __cxa_init_primary_exception()
339 ++exception_header->propagationCount; in __cxa_init_primary_exception()
347 globals->propagatingExceptions = exception_header; in __cxa_init_primary_exception()
370 __cxa_exception* exception_header = globals->propagatingExceptions; in __cxa_init_primary_exception() local
371 if (NULL == exception_header) in __cxa_init_primary_exception()
378 if (__isOurExceptionClass(&exception_header->unwindHeader)) in __cxa_init_primary_exception()
380 --exception_header->propagationCount; in __cxa_init_primary_exception()
381 if (0 == exception_header->propagationCount) in __cxa_init_primary_exception()
383 globals->propagatingExceptions = exception_header->nextPropagatingException; in __cxa_init_primary_exception()
384 exception_header->nextPropagatingException = NULL; in __cxa_init_primary_exception()
391 return &exception_header->unwindHeader; in __cxa_init_primary_exception()
458 __cxa_exception* exception_header = in __cxa_init_primary_exception() local
474 exception_header->handlerCount = exception_header->handlerCount < 0 ? in __cxa_init_primary_exception()
475 -exception_header->handlerCount + 1 : exception_header->handlerCount + 1; in __cxa_init_primary_exception()
478 if (exception_header != globals->caughtExceptions) in __cxa_init_primary_exception()
480 exception_header->nextException = globals->caughtExceptions; in __cxa_init_primary_exception()
481 globals->caughtExceptions = exception_header; in __cxa_init_primary_exception()
485 return reinterpret_cast<void*>(exception_header->unwindHeader.barrier_cache.bitpattern[0]); in __cxa_init_primary_exception()
487 return exception_header->adjustedPtr; in __cxa_init_primary_exception()
495 globals->caughtExceptions = exception_header; in __cxa_init_primary_exception()
532 __cxa_exception* exception_header = globals->caughtExceptions; in __cxa_init_primary_exception() local
536 if (NULL != exception_header) in __cxa_init_primary_exception()
538 bool native_exception = __isOurExceptionClass(&exception_header->unwindHeader); in __cxa_init_primary_exception()
542 if (exception_header->handlerCount < 0) in __cxa_init_primary_exception()
545 if (0 == incrementHandlerCount(exception_header)) in __cxa_init_primary_exception()
548 globals->caughtExceptions = exception_header->nextException; in __cxa_init_primary_exception()
558 if (0 == decrementHandlerCount(exception_header)) in __cxa_init_primary_exception()
561 globals->caughtExceptions = exception_header->nextException; in __cxa_init_primary_exception()
564 if (isDependentException(&exception_header->unwindHeader)) in __cxa_init_primary_exception()
568 reinterpret_cast<__cxa_dependent_exception*>(exception_header); in __cxa_init_primary_exception()
569 exception_header = in __cxa_init_primary_exception()
575 … __cxa_decrement_exception_refcount(thrown_object_from_cxa_exception(exception_header)); in __cxa_init_primary_exception()
605 __cxa_exception *exception_header = globals->caughtExceptions; in __cxa_init_primary_exception() local
606 if (NULL == exception_header) in __cxa_init_primary_exception()
608 if (!__isOurExceptionClass(&exception_header->unwindHeader)) in __cxa_init_primary_exception()
610 return exception_header->exceptionType; in __cxa_init_primary_exception()
627 __cxa_exception* exception_header = globals->caughtExceptions; in __cxa_init_primary_exception() local
628 if (NULL == exception_header) in __cxa_init_primary_exception()
630 bool native_exception = __isOurExceptionClass(&exception_header->unwindHeader); in __cxa_init_primary_exception()
634 exception_header->handlerCount = -exception_header->handlerCount; in __cxa_init_primary_exception()
647 _Unwind_SjLj_RaiseException(&exception_header->unwindHeader); in __cxa_init_primary_exception()
649 _Unwind_RaiseException(&exception_header->unwindHeader); in __cxa_init_primary_exception()
656 __cxa_begin_catch(&exception_header->unwindHeader); in __cxa_init_primary_exception()
658 std::__terminate(exception_header->terminateHandler); in __cxa_init_primary_exception()
674 __cxa_exception* exception_header = cxa_exception_from_thrown_object(thrown_object); in __cxa_init_primary_exception() local
675 std::__libcpp_atomic_add(&exception_header->referenceCount, size_t(1)); in __cxa_init_primary_exception()
691 __cxa_exception* exception_header = cxa_exception_from_thrown_object(thrown_object); in __cxa_init_primary_exception() local
692 if (std::__libcpp_atomic_add(&exception_header->referenceCount, size_t(-1)) == 0) in __cxa_init_primary_exception()
694 if (NULL != exception_header->exceptionDestructor) in __cxa_init_primary_exception()
695 exception_header->exceptionDestructor(thrown_object); in __cxa_init_primary_exception()
716 __cxa_exception* exception_header = globals->caughtExceptions; in __cxa_init_primary_exception() local
717 if (NULL == exception_header) in __cxa_init_primary_exception()
719 if (!__isOurExceptionClass(&exception_header->unwindHeader)) in __cxa_init_primary_exception()
721 if (isDependentException(&exception_header->unwindHeader)) { in __cxa_init_primary_exception()
723 reinterpret_cast<__cxa_dependent_exception*>(exception_header); in __cxa_init_primary_exception()
724 exception_header = cxa_exception_from_thrown_object(dep_exception_header->primaryException); in __cxa_init_primary_exception()
726 void* thrown_object = thrown_object_from_cxa_exception(exception_header); in __cxa_init_primary_exception()
760 __cxa_exception* exception_header = cxa_exception_from_thrown_object(thrown_object); in __cxa_init_primary_exception() local
765 dep_exception_header->exceptionType = exception_header->exceptionType; in __cxa_init_primary_exception()