This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcj/25934] fast instanceof checking
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2006 20:26:34 -0000
- Subject: [Bug libgcj/25934] fast instanceof checking
- References: <bug-25934-360@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from tromey at gcc dot gnu dot org 2006-03-15 20:26 -------
Now I think we don't need to do anything here.
We already handle the common cases.
For instance, if the target is an interface we will use
the IDT to do this test. This is reasonably fast.
Also if both classes in question are concrete, we will
use the 'ancestors' array to do a constant-time check.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25934