gcc/libjava/include
Bryce McKinlay 861ef92859 java-tree.h (otable_methods, [...]): New field/global tree definitions.
gcc/java:

	* java-tree.h (otable_methods, otable_decl, otable_syms_decl,
	otable_type, otable_ptr_type, method_symbol_type,
	method_symbols_array_type, method_symbols_array_ptr_type): New
	field/global tree definitions.
	(flag_indirect_dispatch): New flag.
	* decl.c (java_init_decl_processing): Initialize new otable and
	otable_syms type nodes and decls. Add new field "index" to
	method_type_node.
	* class.c (build_method_symbols_entry): New function.
	(make_method_value): Set "index" to to method's vtable index for
	virtual methods when indirect-dispatch is not used.
	(make_class_data): For indirect-dispatch, dont emit the dtable_decl,
	and set vtable_method_count to -1. Set otable and otable_syms field
	if indirect-dispatch is used and there was something to put in them.
	(build_method_symbols_entry): New function.
	(emit_offset_symbol_table): New function.
	* expr.c (get_offset_table_index): New function.
	(build_invokevirtual): Build array reference to otable at the index
	returned by get_offset_table_index, and use the result as the vtable
	offset.
	(build_invokeinterface): Similar.
	* jcf-parse.c (yyparse): If indirect-dispatch, call
	emit_offset_symbol_table at the end of compilation, after all classes
	have been generated.
	* jvspec.c: Don't pass findirect-dispatch to jvgenmain.
	* lang.c (flag_indirect_dispatch): Define.
	(lang_f_options): Add indirect-dispatch flag.

libjava:

	* include/jvm.h (_Jv_VTable::idx_to_offset): New method.
	* java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): Call
	_Jv_MakeVTable and _Jv_LinkOffsetTable if needed.
	* java/lang/Class.h (_Jv_Method): Add "index" field.
	(_Jv_MethodSymbol): New struct type.
	(_Jv_LinkOffsetTable, _Jv_LayoutVTableMethods, _Jv_SetVTableEntries,
	_Jv_MakeVTable): Friends.
	(otable, otable_syms): New Class fields.
	* java/lang/natClass.cc (_Jv_LinkOffsetTable): New function.
	(isVirtualMethod): New static function.
	(_Jv_LayoutVTableMethods): New function.
	(_Jv_SetVTableEntries): New function.
	(_Jv_MakeVTable): New function.

From-SVN: r48038
2001-12-15 08:31:49 +00:00
..
Makefile.am Makefile.am (AUTOMAKE_OPTIONS): Remove no-installinfo. 2001-04-04 23:38:53 +00:00
Makefile.in For PR java/2812: 2001-07-18 17:06:24 +00:00
boehm-gc.h boehm-gc.h: Call thread local allocation functions if THREAD_LOCAL_ALLOC is defined. 2001-10-25 17:29:41 +00:00
config.h.in SharedLibLoader.java: New class. 2001-09-29 12:16:27 -07:00
default-signal.h
dwarf2-signal.h i386-signal.h (MAKE_THROW_FRAME): Don't fix up frame pointer... 2001-05-29 17:50:50 +00:00
i386-signal.h i386-signal.h (HANDLE_DIVIDE_OVERFLOW): Removed unused local `_ebp.' 2001-07-17 16:59:07 -07:00
java-assert.h
java-chardecomp.h
java-chartables.h
java-cpool.h
java-insns.h verify.cc (_Jv_BytecodeVerifier::branch_prepass): Use java_opcode as type for switch. 2001-11-25 19:48:19 +00:00
java-interp.h Fix for PR libgcj/2024, plus other class name cleanups: 2001-11-26 06:40:06 +00:00
java-props.h natSystem.cc (init_properties): Change sourceware reference to sources.redhat.com. 2000-08-21 06:05:20 +00:00
jni.h jni.h (struct JNINativeInterface): Returns jsize, not jint. 2001-10-27 18:24:51 +00:00
jvm.h java-tree.h (otable_methods, [...]): New field/global tree definitions. 2001-12-15 08:31:49 +00:00
jvmpi.h
name-finder.h
no-gc.h
no-threads.h Implement invocation interface; don't create new thread for main. 2001-05-21 23:47:48 -07:00
posix-threads.h configure.host: Enable hash synchronization for alpha*-*. 2001-07-23 03:51:17 +00:00
posix.h re PR libgcj/3694 (natPlainDatagramSocketImpl.cc doesn't compile in ALPHA OSF1) 2001-08-01 17:53:00 +00:00
sparc-signal.h
stamp-h.in
win32-signal.h
win32-threads.h Implement invocation interface; don't create new thread for main. 2001-05-21 23:47:48 -07:00