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
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
.cvsignore | Loading commit data... | |
Makefile.am | Loading commit data... | |
Makefile.in | Loading commit data... | |
boehm-gc.h | Loading commit data... | |
config.h.in | Loading commit data... | |
default-signal.h | Loading commit data... | |
dwarf2-signal.h | Loading commit data... | |
i386-signal.h | Loading commit data... | |
java-assert.h | Loading commit data... | |
java-chardecomp.h | Loading commit data... | |
java-chartables.h | Loading commit data... | |
java-cpool.h | Loading commit data... | |
java-insns.h | Loading commit data... | |
java-interp.h | Loading commit data... | |
java-props.h | Loading commit data... | |
jni.h | Loading commit data... | |
jvm.h | Loading commit data... | |
jvmpi.h | Loading commit data... | |
no-gc.h | Loading commit data... | |
no-threads.h | Loading commit data... | |
posix-threads.h | Loading commit data... | |
posix.h | Loading commit data... | |
powerpc-signal.h | Loading commit data... | |
s390-signal.h | Loading commit data... | |
sparc-signal.h | Loading commit data... | |
stamp-h.in | Loading commit data... | |
win32-signal.h | Loading commit data... | |
win32-threads.h | Loading commit data... | |
win32.h | Loading commit data... | |
x86_64-signal.h | Loading commit data... |