Commit 415c96ca by Paolo Bonzini Committed by Tom Tromey

interpret.cc (_Jv_InterpMethod::run): Don't use libffi types, they were meant to be internal.

2003-10-14  Paolo Bonzini  <bonzini@gnu.org>

	* interpret.cc (_Jv_InterpMethod::run): Don't
	use libffi types, they were meant to be internal.
	* gcj/javaprims.h (_Jv_ulong): New typedef.

From-SVN: r72482
parent 4f22de03
2003-10-14 Paolo Bonzini <bonzini@gnu.org>
* interpret.cc (_Jv_InterpMethod::run): Don't
use libffi types, they were meant to be internal.
* gcj/javaprims.h (_Jv_ulong): New typedef.
2003-10-13 Tom Tromey <tromey@redhat.com> 2003-10-13 Tom Tromey <tromey@redhat.com>
* java/lang/natClassLoader.cc (_Jv_InitNewClassFields): Removed. * java/lang/natClassLoader.cc (_Jv_InitNewClassFields): Removed.
......
...@@ -496,6 +496,7 @@ extern "C" void _Jv_RegisterClassHookDefault (jclass); ...@@ -496,6 +496,7 @@ extern "C" void _Jv_RegisterClassHookDefault (jclass);
typedef unsigned short _Jv_ushort __attribute__((__mode__(__HI__))); typedef unsigned short _Jv_ushort __attribute__((__mode__(__HI__)));
typedef unsigned int _Jv_uint __attribute__((__mode__(__SI__))); typedef unsigned int _Jv_uint __attribute__((__mode__(__SI__)));
typedef unsigned int _Jv_ulong __attribute__((__mode__(__DI__)));
struct _Jv_Utf8Const struct _Jv_Utf8Const
{ {
......
...@@ -1898,7 +1898,7 @@ _Jv_InterpMethod::run (void *retp, ffi_raw *args) ...@@ -1898,7 +1898,7 @@ _Jv_InterpMethod::run (void *retp, ffi_raw *args)
insn_iushr: insn_iushr:
{ {
jint shift = (POPI() & 0x1f); jint shift = (POPI() & 0x1f);
UINT32 value = (UINT32) POPI(); _Jv_uint value = (_Jv_uint) POPI();
PUSHI ((jint) (value >> shift)); PUSHI ((jint) (value >> shift));
} }
NEXT_INSN; NEXT_INSN;
...@@ -1906,8 +1906,8 @@ _Jv_InterpMethod::run (void *retp, ffi_raw *args) ...@@ -1906,8 +1906,8 @@ _Jv_InterpMethod::run (void *retp, ffi_raw *args)
insn_lushr: insn_lushr:
{ {
jint shift = (POPI() & 0x3f); jint shift = (POPI() & 0x3f);
UINT64 value = (UINT64) POPL(); _Jv_ulong value = (_Jv_ulong) POPL();
PUSHL ((value >> shift)); PUSHL ((jlong) (value >> shift));
} }
NEXT_INSN; NEXT_INSN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment