Displaying 2 results from an estimated 2 matches for "isexeception0".
2008 May 10
0
[LLVMdev] How to handle divide-by-zero exception?
...pTheExceptionHandler();
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) {
catch-0-statements;
}
.
else if (isExecptionN) {
catch-n-statements;
}
else {
unwind-to-next-handler();
}
final-statements;
tail-statements;
}
-------------------------
The rough idea is:
1) Make lists of the global & local variables modified in 'try-stat...
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