This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ patch: Add support for calling Java interfaces
- To: Bryce McKinlay <bryce at albatross dot co dot nz>
- Subject: Re: C++ patch: Add support for calling Java interfaces
- From: Jason Merrill <jason at redhat dot com>
- Date: 21 Mar 2001 14:50:54 +0000
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- References: <3AB82C7E.BF1A4AEE@albatross.co.nz>
>>>>> "Bryce" == Bryce McKinlay <bryce@albatross.co.nz> writes:
> + tree lookup_fn = builtin_function ("_Jv_LookupInterfaceMethodIdx",
> + build_function_type (ptr_type_node, t),
> + 0, NOT_BUILT_IN, NULL_PTR);
You should only call builtin_function once; after that, just look it up.
> + /* Determine the itable index of FN. */
> + i = 1;
> + for (method = TYPE_METHODS (iface); method; method = TREE_CHAIN (method))
> + {
> + if (DECL_ARTIFICIAL (method) || !DECL_VIRTUAL_P (method))
> + continue;
Why check DECL_ARTIFICIAL?
Jason