This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/25934] fast instanceof checking



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]