Re: [RfC] Testing for null

2003-12-10 Thread Leopold Toetsch
Dan Sugalski <[EMAIL PROTECTED]> wrote: > Add an isnull branch op: >isnull Px, destination Done. leo

Re: [RfC] Testing for null

2003-12-09 Thread Dan Sugalski
At 4:36 PM -0500 12/8/03, Gordon Henriksen wrote: On Monday, December 8, 2003, at 10:03 , Dan Sugalski wrote: At 1:21 PM -0500 12/3/03, Melvin Smith wrote: We should have 1 recommended way for testing NULL registers. If we support get_bool() then lets make sure it works for REAL NULL pmc registe

Re: [RfC] Testing for null

2003-12-08 Thread Gordon Henriksen
On Monday, December 8, 2003, at 10:03 , Dan Sugalski wrote: At 1:21 PM -0500 12/3/03, Melvin Smith wrote: We should have 1 recommended way for testing NULL registers. If we support get_bool() then lets make sure it works for REAL NULL pmc registers as well as PMCNULL. If not, code will appear to

Re: [RfC] Testing for null

2003-12-08 Thread Dan Sugalski
At 1:21 PM -0500 12/3/03, Melvin Smith wrote: We should have 1 recommended way for testing NULL registers. If we support get_bool() then lets make sure it works for REAL NULL pmc registers as well as PMCNULL. If not, code will appear to work correctly on a "safe" core but will seg fault on some o

Re: [RfC] Testing for null

2003-12-03 Thread Melvin Smith
not to use PMCNULL in all cores now. -Melvin Leopold Toetsch <[EMAIL PROTECTED]> 12/03/2003 10:43 AM Please respond to lt To: [EMAIL PROTECTED] (Juergen Boemmels) cc: [EMAIL PROTECTED] Subject: Re: [RfC] Testing for null Juergen Boemmels <[EMAI

Re: [RfC] Testing for null

2003-12-03 Thread Leopold Toetsch
Juergen Boemmels <[EMAIL PROTECTED]> wrote: > Hi, > I'm curently playing around with open calls returning a PMCNULL > instead of a half valid IO-Object. But the main problem with that is > that there is currently no way for the byte-code to detect such a > case. C tests for PMCNULL too and is usa

Re: [RfC] Testing for null

2003-12-03 Thread Juergen Boemmels
Melvin Smith <[EMAIL PROTECTED]> writes: [...] > My intention for PMCNULL was to catch invalid interpreter state, or > invalid bytecode; cases which used to give us core dumps. > > Explicitly returning PMCNULL and allowing tests on PMCNULL may > or may not fit into this, depending on your point

Re: [RfC] Testing for null

2003-12-03 Thread Melvin Smith
At 03:46 PM 12/3/2003 +0100, Juergen Boemmels wrote: I'm curently playing around with open calls returning a PMCNULL instead of a half valid IO-Object. But the main problem with that is that there is currently no way for the byte-code to detect such a case. The if and unless ops call the get_boolea

[RfC] Testing for null

2003-12-03 Thread Juergen Boemmels
Hi, I'm curently playing around with open calls returning a PMCNULL instead of a half valid IO-Object. But the main problem with that is that there is currently no way for the byte-code to detect such a case. The if and unless ops call the get_boolean vtable method which throws an internal excepti