gcc/libjava/java
Andrew Haley 9dfc2ec225 jcf-parse.c (java_parse_file): Write otable and atable.
2003-10-01  Andrew Haley  <aph@redhat.com>

        * jcf-parse.c (java_parse_file): Write otable and atable.
        * java-tree.h (atable_methods): New.
        (atable_decl): New.
        (atable_syms_decl): New.
        (enum java_tree_index): Add JTI_ATABLE_METHODS, JTI_ATABLE_DECL,
        JTI_ATABLE_SYMS_DECL.  Rename JTI_METHOD_SYMBOL* to JTI_SYMBOL*.
        (symbol_*type): Rename method_symbol* to symbol*type.
        (emit_offset_symbol_table): Delete.
        (emit_symbol_table): New.
        (get_symbol_table_index): New.
        (atable_type): New.
        * expr.c (build_field_ref): Handle flag_indirect_dispatch.
        (build_known_method_ref): Likewise.
        (get_symbol_table_index): Rename from get_offset_table_index.
        Parameterize to allow re-use by differing types of symbol table.
        (build_invokevirtual): Pass table to get_offset_table_index.
        * decl.c (java_init_decl_processing): Push types and decls for
        atable and atable_syyms.
        * class.c (build_static_field_ref): Handle flag_indirect_dispatch.
        (make_class_data): Add new fields atable and atable_syms.
        (emit_symbol_table): Rename from emit_offset_symbol_table.
        Parameterize to allow re-use by different types of symbol table.
        (build_symbol_entry): Renamed from build_method_symbols_entry.

2003-10-01  Andrew Haley  <aph@redhat.com>

        * java/lang/natClass.cc (initializeClass): Check for otable and
        atable.
        (_Jv_LinkOffsetTable): Check for existence of atable.  Rewrite
        loops using for().  Search superinterfaces.  Check for fields as
        well as methods.  Initialize atable as well as otable: check for
        static methods as well as virtual methods.
        * java/lang/Class.h (struct _Jv_AddressTable): New.
        (atable): New.
        (atable_syms): New.
        * include/jvm.h (_Jv_equalUtf8Consts): constify.
        * prims.cc (_Jv_equalUtf8Consts): constify.

From-SVN: r71979
2003-10-01 16:22:13 +00:00
..
applet AppletContext.java: Fix typo and remove redundant modifiers. 2002-11-14 20:35:27 +00:00
awt IndexColorModel.java: Reformated. 2003-09-29 11:28:58 +00:00
beans MemoryImageSource.java, [...]: New versions from classpath. 2003-07-14 05:33:30 +00:00
io [multiple changes] 2003-09-26 19:59:56 +00:00
lang jcf-parse.c (java_parse_file): Write otable and atable. 2003-10-01 16:22:13 +00:00
math BigDecimal (divide): Correctly handle ROUND_HALF_EVEN when amount is greater than 0.5. 2003-08-01 15:07:49 +00:00
net Fixed little typo. 2003-09-29 12:05:41 +00:00
nio ByteBufferHelper.java: Totally reworked with help from Eric Blake. 2003-09-26 16:22:09 +00:00
rmi RMIClassLoader.java: Reformatted file, no functional code changes. 2003-09-26 20:03:28 +00:00
security Acl.java: Fix broken p tag. 2003-08-26 22:42:37 +00:00
sql 2003-09-18 Jeroen Frijters <jeroen@frijters.net> 2003-09-18 06:11:41 +00:00
text DateFormat.java (format): Throw IllegalArgumentException if j' is not a Number or Date instance. 2003-09-28 05:23:29 +01:00
util jcf-parse.c (java_parse_file): Write otable and atable. 2003-10-01 16:22:13 +00:00