]>
gcc.gnu.org Git - gcc.git/blob - libjava/include/java-cpool.h
3399d35c9bd14074f3c0500580300cca58bb6c35
1 // java-cpool.h - Constant pool parsing header. -*- c++ -*-
3 /* Copyright (C) 1999 Red Hat, Inc.
5 This file is part of libgcj.
7 This software is copyrighted work licensed under the terms of the
8 Libgcj License. Please consult the file "LIBGCJ_LICENSE" for
11 #ifndef __JAVA_CPOOL_H__
12 #define __JAVA_CPOOL_H__
14 #include <gcj/javaprims.h>
16 // we rename these, to avoid polluting the name space
17 #define JV_CONSTANT_Undefined (0L)
18 #define JV_CONSTANT_Utf8 (1L)
19 #define JV_CONSTANT_Unicode (2L)
20 #define JV_CONSTANT_Integer (3L)
21 #define JV_CONSTANT_Float (4L)
22 #define JV_CONSTANT_Long (5L)
23 #define JV_CONSTANT_Double (6L)
24 #define JV_CONSTANT_Class (7L)
25 #define JV_CONSTANT_String (8L)
26 #define JV_CONSTANT_Fieldref (9L)
27 #define JV_CONSTANT_Methodref (10L)
28 #define JV_CONSTANT_InterfaceMethodref (11L)
29 #define JV_CONSTANT_NameAndType (12L)
30 #define JV_CONSTANT_ResolvedFlag (16L)
31 #define JV_CONSTANT_ResolvedString (16L | 8L)
32 #define JV_CONSTANT_ResolvedClass (16L | 7L)
35 _Jv_storeIndexes (_Jv_word
*data
,
39 data
->i
= (((jint
)index0
) << 16) | (jint
) index1
;
43 _Jv_loadIndexes (const _Jv_word
*data
,
49 _Jv_uint uindex0
= ((udata
>> 16) & 0xffff);
50 _Jv_uint uindex1
= udata
& 0xffff;
57 _Jv_storeFloat (_Jv_word
*data
, jfloat f
)
63 _Jv_loadFloat (_Jv_word
*data
)
69 _Jv_storeInt (_Jv_word
*data
, jint i
)
75 _Jv_loadInt (_Jv_word
*data
)
81 _Jv_storeLong (_Jv_word
*data
, jlong l
)
85 data
[0].ia
[0] = tmp
.ia
[0];
86 data
[1].ia
[0] = tmp
.ia
[1];
90 _Jv_loadLong (_Jv_word
*data
)
93 tmp
.ia
[0] = data
[0].ia
[0];
94 tmp
.ia
[1] = data
[1].ia
[0];
99 _Jv_storeDouble (_Jv_word
*data
, jdouble d
)
103 data
[0].ia
[0] = tmp
.ia
[0];
104 data
[1].ia
[0] = tmp
.ia
[1];
107 extern inline jdouble
108 _Jv_loadDouble (_Jv_word
*data
)
111 tmp
.ia
[0] = data
[0].ia
[0];
112 tmp
.ia
[1] = data
[1].ia
[0];
117 #endif /* __JAVA_CPOOL_H__ */
This page took 0.040396 seconds and 4 git commands to generate.