aboutsummaryrefslogtreecommitdiff
path: root/libjava/include/javaprims.h
diff options
context:
space:
mode:
authorAnthony Green <green@gcc.gnu.org>1999-08-10 05:32:23 +0000
committerAnthony Green <green@gcc.gnu.org>1999-08-10 05:32:23 +0000
commit7941ceabf0f14279e93443a63ca4d355f3a88830 (patch)
tree9c08b881a7b585b2167568feb299be46b2919659 /libjava/include/javaprims.h
parent3ef1cea850c365903de7137b0a444f49e736981f (diff)
downloadgcc-7941ceabf0f14279e93443a63ca4d355f3a88830.zip
gcc-7941ceabf0f14279e93443a63ca4d355f3a88830.tar.gz
gcc-7941ceabf0f14279e93443a63ca4d355f3a88830.tar.bz2
[multiple changes]
Mon Aug 9 18:33:38 1999 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE> * Makefile: Rebuilt. * Makefile.am (toolexeclibdir): Add $(MULTISUBDIR) even for native builds. * java/net/natPlainSocketImpl.cc: Include <sys/select.h> only if present. * configure: Rebuilt. * configure.in: Properly align --help output, fix capitalization and punctuation. * acinclude.m4: Likewise. 1999-08-09 Kresten Krab Thorup <krab@gnu.org> * include/javaprims.h (_Jv_word, _Jv_word2): New types. * include/java-interp.h (_Jv_InterpMethodInvocation): Use _Jv_word. (_Jv_callInterpretedMethod): Unused. Remove. (_Jv_InterpMethod::run,run_normal,run_synch_object,run_synch_class): Use ffi_raw. * include/java-cpool.h (_Jv_get, _Jv_put): Remove. (_Jv_{store,load}{Indexes,Int,Float,Long,Double}): Use _Jv_word. * boehm.cc (_Jv_MarkObj): Use _Jv_word. * interpret.cc: use _Jv_word. * defineclass.cc: use_Jv_word. * resolve.cc: Use _Jv_word. (_Jv_ResolvePoolEntry): Return _Jv_word. * java/lang/Class.h (_Jv_Constants): Use _Jv_word for cpool. * java/lang/natClassLoader.cc (_Jv_InternClassStrings): Use _Jv_word. * interpret.cc (gnu::gcj::runtime::MethodInvocation::continue1): Change comment. From-SVN: r28641
Diffstat (limited to 'libjava/include/javaprims.h')
-rw-r--r--libjava/include/javaprims.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/libjava/include/javaprims.h b/libjava/include/javaprims.h
index 9d8c0a6..ef87519 100644
--- a/libjava/include/javaprims.h
+++ b/libjava/include/javaprims.h
@@ -261,6 +261,27 @@ extern "C" void _Jv_Free (void*);
typedef unsigned short _Jv_ushort __attribute__((__mode__(__HI__)));
typedef unsigned int _Jv_uint __attribute__((__mode__(__SI__)));
+typedef union {
+ jobject o;
+ jint i; // Also stores smaller integral types.
+ jfloat f;
+ jint ia[1]; // Half of _Jv_word2.
+ void* p;
+
+ // these are things we will store in the constant
+ jclass clazz;
+ jstring string;
+ struct _Jv_Field *field;
+ struct _Jv_Utf8Const *utf8;
+ struct _Jv_ResolvedMethod *rmethod;
+} _Jv_word;
+
+typedef union {
+ jint ia[2];
+ jlong l;
+ jdouble d;
+} _Jv_word2;
+
struct _Jv_Utf8Const
{
_Jv_ushort hash;