[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libjit-developers] Patch for dpas-parser.y to implement array expre
From: |
Rhys Weatherley |
Subject: |
Re: [Libjit-developers] Patch for dpas-parser.y to implement array expressions |
Date: |
Fri, 23 Dec 2005 08:28:36 +1000 |
User-agent: |
KMail/1.4.3 |
On Tuesday 20 December 2005 07:28 pm, Avinash Atreya wrote:
> When array indices are out of bounds, an exception is thrown. This
> seg-faults in jit mode as well as interpreted mode. Gopal was telling me
> that exceptions have not been implemented, that could be a possible reason.
> Also, i am throwing 0 along with the exception, not sure what would be a
> good value to throw. The index which was out of bounds?
Make it throw a builtin exception using "jit_exception_builtin" (look at the
intrinsic handling code to see how this is done), and add a new type code to
jit-except.h for array out of bounds.
Cheers,
Rhys.