Displaying 2 results from an estimated 2 matches for "poptheexceptionhandl".
Did you mean:
poptheexceptionhandler
2008 May 10
0
[LLVMdev] How to handle divide-by-zero exception?
...try-statements;
}
catch(Execption0 ex0) {
catch-0-statements;
}
.
catch(ExceptionN exN) {
catch-n-statements;
}
finally {
final-statemements
}
tail-statements;
}
foo$n(parameter-list)
{
leading-statements.
PushTheExceptionHandler(foo$x);
try-statements
PopTheExceptionHandler();
final-statements;
tail-statements;
}
foo$x(ExceptionInformation info)
{
// here the stack-pointer and frame-base-pointer
// should be the same as at the beginning of the
// try-block. Local variables from 'foo$n' are
// at the same offsets.
if (isExeception0) {...
2008 May 09
4
[LLVMdev] How to handle divide-by-zero exception?
On May 8, 2008, at 9:35 PM, Nick Lewycky wrote:
> Talin wrote:
>> Currently it states in the language manual that the results of
>> division
>> by zero are undefined. However, I'm curious as to how you would
>> normally
>> handle either divide by zero or other "hardware" exceptions (null
>> pointer dereference and so on) and turn them into