jni.cc (add_char): Conditional on INTERPRETER.

* jni.cc (add_char): Conditional on INTERPRETER.
	(mangled_name): Likewise.
	(call): Likewise.
	* include/java-interp.h (class _Jv_MethodBase): Conditional on
	INTERPRETER.
	(class _Jv_JNIMethod): Likewise.

From-SVN: r31839
This commit is contained in:
Tom Tromey 2000-02-07 21:17:30 +00:00 committed by Tom Tromey
parent f766bd4696
commit f39b788a15
3 changed files with 28 additions and 20 deletions

View file

@ -14,18 +14,6 @@ details. */
#include <jvm.h>
#include <java-cpool.h>
// Base class for method representations. Subclasses are interpreted
// and JNI methods.
class _Jv_MethodBase
{
protected:
// The class which defined this method.
_Jv_InterpClass *defining_class;
// The method description.
_Jv_Method *self;
};
#ifdef INTERPRETER
#pragma interface
@ -78,6 +66,18 @@ class _Jv_InterpException {
friend class _Jv_InterpMethod;
};
// Base class for method representations. Subclasses are interpreted
// and JNI methods.
class _Jv_MethodBase
{
protected:
// The class which defined this method.
_Jv_InterpClass *defining_class;
// The method description.
_Jv_Method *self;
};
class _Jv_InterpMethod : public _Jv_MethodBase
{
_Jv_ushort max_stack;
@ -169,8 +169,6 @@ struct _Jv_ResolvedMethod {
ffi_type * arg_types[0];
};
#endif /* INTERPRETER */
class _Jv_JNIMethod : public _Jv_MethodBase
{
// The underlying function. If NULL we have to look for the
@ -186,4 +184,6 @@ class _Jv_JNIMethod : public _Jv_MethodBase
friend void _Jv_PrepareClass(jclass);
};
#endif /* INTERPRETER */
#endif /* __JAVA_INTERP_H__ */