This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Java: add Class protection domain field
- To: Per Bothner <per at bothner dot com>
- Subject: Re: Java: add Class protection domain field
- From: Bryce McKinlay <bryce at albatross dot co dot nz>
- Date: Thu, 22 Mar 2001 12:15:28 +1200
- CC: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- References: <3AB840A9.F169033@albatross.co.nz> <m27l1jtzwz.fsf@kelso.bothner.com>
Per Bothner wrote:
> would it make sense to "inline" the idt field into
> Class? I.e. change its type from (union _Jv_IDispatchTable*) to
> plain (union _Jv_IDispatchTable)? That saves one pointer indirection on
> each use of the table. It should perhaps also be moved earlier
> in the class object, so it is more likely it can be address by a small
> offset. (Most of the fields of a Class are only used for "reflection";
> the idt field is used for "real" computation.)
Yes, absolutely. Additionally, this is a step towards being able to
generate an inlined interface method lookup - as it stands the compiler
doesn't know the structure of the interface tables. I'll need to study how
to implement the union type in the compiler if I am to do this though ;-)
regards
[ bryce ]