Lines Matching defs:exception
10 // Demo program which implements an example LLVM exception implementation, and
14 // of -1 will trigger a foreign C++ exception to be thrown; type info types
21 // thrown exception.
32 // - Value 2 causes an exception with a type info type of 2 to be
34 // - Value 3 causes an exception with a type info type of 3 to be
36 // - Value 7 causes an exception with a type info type of 7 to be
38 // - Value -1 causes a foreign C++ exception to be thrown and not be
42 // of a C++ catch(...) clause catching a generated exception with a
149 /// This is our Exception class which relies on a negative offset to calculate
321 /// Deletes the true previosly allocated exception whose address
324 /// @param expToDelete exception to delete
340 /// used by foreign exception handlers when deleting our exception
344 /// @param expToDelete exception instance to delete
356 /// Creates (allocates on the heap), an exception (OurException instance),
533 /// action matches the supplied exception type. If such a match succeeds,
544 /// @param exceptionClass exception class (_Unwind_Exception::exception_class)
545 /// of thrown exception.
638 /// @param exceptionClass exception class (_Unwind_Exception::exception_class)
639 /// of thrown exception.
660 // instruction in the current frame which threw the exception.
713 // We have been notified of a foreign exception being thrown,
822 /// @param exceptionClass exception class (_Unwind_Exception::exception_class)
823 /// of thrown exception.
978 /// regardless of whether a thrown exception is passing through or the
980 /// to stderr, this code will resume the exception handling--runs the
981 /// unwind resume block, if the exception has not been previously caught
984 /// stack storage for the exception pointer and catch flag status.
993 /// @param exceptionCaughtFlag reference exception
994 /// @param exceptionStorage reference to exception pointer storage
1062 /// catch executed, sets an exception caught flag, and executes passed in
1071 /// @param exceptionCaughtFlag exception caught/thrown status
1109 /// exception which does not match any type info types contained in
1111 /// with the raised exception. On the other hand the generated code will
1112 /// normally exit if the toInvoke function does not throw an exception.
1162 "exception",
1165 // Block which routes exception to correct catch handler block
1170 // Foreign exception handler
1180 // Clean up block which delete exception if needed
1190 // exception is not caught. Initializes/allocates stack locations.
1252 "Gen: No exception in " + ourId + "!\n",
1264 // Exception Block
1294 // Retrieve exception_class member from thrown exception
1296 // the exception is foreign.
1303 // Branch to the externalExceptionBlock if the exception is foreign or
1311 // External Exception Block
1318 "Gen: Foreign exception received.\n",
1324 // Exception Route Block
1328 // Casts exception pointer (_Unwind_Exception instance) to parent
1337 // Retrieve thrown exception type info type
1351 "Gen: Exception type <%d> received (stack unwound) "
1378 /// Generates function which throws either an exception matched to a runtime
1380 /// runtime value matches nativeThrowType, throws a foreign exception by
1388 /// nativeThrowFunct being called to generate/throw exception.
1389 /// @param nativeThrowFunct function which will throw a foreign exception
1415 // Throws either one of our exception or a native C++ exception depending
1420 // Throws a foreign exception
1435 // Throws foreign exception
1449 "\nGen: About to throw exception type <%d> in " +
1455 // a foreign exception is thrown. Defaults to throwing one of our
1473 // Creates exception to throw with runtime type info type.
1474 llvm::Value *exception = builder.CreateCall(createOurException,
1477 // Throw generated Exception
1478 builder.CreateCall(raiseOurException, exception);
1502 /// throw a generated exception with the same type info type, or instead call
1503 /// a supplied a function which in turn will throw a foreign exception.
1509 /// a foreign exception
1518 // Initialze intrisics and external functions to use along with exception
1525 // Create exception throw function using the value ~0 to cause
1584 /// Throws foreign C++ exception.
1601 /// @param typeToThrow type info type of generated exception to throw, or
1602 /// indicator to cause foreign exception to be thrown.
1618 // Catch foreign C++ exception
1654 // Exception initializations
1656 // Setup exception catch state
1932 /// of -1 will trigger a foreign C++ exception to be thrown; type info types
1939 "\nUsage: ExceptionDemo <exception type to throw> "
1951 // If not set, exception handling will not be turned on
2026 // Run test for each argument whose value is the exception