comparison src/share/vm/c1x/c1x_VMEntries.hpp @ 1421:6223633ce7dd

changed VMExit/VMEntries to non-static, added eclipse c++ project, CIR interface changes
author Lukas Stadler <lukas.stadler@oracle.com>
date Fri, 23 Jul 2010 15:53:02 -0700
parents 7bf6a77b9c5a
children 3483ec571caf
comparison
equal deleted inserted replaced
1420:44efca8a02d6 1421:6223633ce7dd
20 * CA 95054 USA or visit www.sun.com if you need additional information or 20 * CA 95054 USA or visit www.sun.com if you need additional information or
21 * have any questions. 21 * have any questions.
22 * 22 *
23 */ 23 */
24 24
25 #ifndef _Included_com_sun_hotspot_c1x_VMEntries
26 #define _Included_com_sun_hotspot_c1x_VMEntries
27
28 #define CC (char*) /*cast a literal from (const char*)*/ 25 #define CC (char*) /*cast a literal from (const char*)*/
29 #define FN_PTR(f) CAST_FROM_FN_PTR(void*, &f) 26 #define FN_PTR(f) CAST_FROM_FN_PTR(void*, &f)
30 27
28 #ifdef SOLARIS
29 #define JNIEXPORT
30 #define JNICALL
31 #endif
32
31 /* 33 /*
32 * Class: com_sun_hotspot_c1x_VMEntries 34 * Class: com_sun_hotspot_c1x_VMEntries
33 * Method: RiMethod_code 35 * Method: RiMethod_code
34 * Signature: (Ljava/lang/Object;)[B 36 * Signature: (Ljava/lang/Object;)[B
35 */ 37 */
36 JNIEXPORT jbyteArray JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1code 38 JNIEXPORT jbyteArray JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1code
37 (JNIEnv *, jclass, jobject); 39 (JNIEnv *, jobject, jobject);
38 40
39 /* 41 /*
40 * Class: com_sun_hotspot_c1x_VMEntries 42 * Class: com_sun_hotspot_c1x_VMEntries
41 * Method: RiMethod_maxStackSize 43 * Method: RiMethod_maxStackSize
42 * Signature: (Ljava/lang/Object;)I 44 * Signature: (Ljava/lang/Object;)I
43 */ 45 */
44 JNIEXPORT jint JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1maxStackSize 46 JNIEXPORT jint JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1maxStackSize
45 (JNIEnv *, jclass, jobject); 47 (JNIEnv *, jobject, jobject);
46 48
47 /* 49 /*
48 * Class: com_sun_hotspot_c1x_VMEntries 50 * Class: com_sun_hotspot_c1x_VMEntries
49 * Method: RiMethod_maxLocals 51 * Method: RiMethod_maxLocals
50 * Signature: (Ljava/lang/Object;)I 52 * Signature: (Ljava/lang/Object;)I
51 */ 53 */
52 JNIEXPORT jint JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1maxLocals 54 JNIEXPORT jint JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1maxLocals
53 (JNIEnv *, jclass, jobject); 55 (JNIEnv *, jobject, jobject);
54 56
55 57
56 /* 58 /*
57 * Class: com_sun_hotspot_c1x_VMEntries 59 * Class: com_sun_hotspot_c1x_VMEntries
58 * Method: RiMethod_holder 60 * Method: RiMethod_holder
59 * Signature: (Ljava/lang/Object;)Lcom/sun/cri/ri/RiType; 61 * Signature: (Ljava/lang/Object;)Lcom/sun/cri/ri/RiType;
60 */ 62 */
61 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1holder 63 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1holder
62 (JNIEnv *, jclass, jobject); 64 (JNIEnv *, jobject, jobject);
63 65
64 /* 66 /*
65 * Class: com_sun_hotspot_c1x_VMEntries 67 * Class: com_sun_hotspot_c1x_VMEntries
66 * Method: RiMethod_signature 68 * Method: RiMethod_signature
67 * Signature: (Ljava/lang/Object;)Lcom/sun/cri/ri/RiSignature; 69 * Signature: (Ljava/lang/Object;)Lcom/sun/cri/ri/RiSignature;
68 */ 70 */
69 JNIEXPORT jstring JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1signature 71 JNIEXPORT jstring JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1signature
70 (JNIEnv *, jclass, jobject); 72 (JNIEnv *, jobject, jobject);
71 73
72 /* 74 /*
73 * Class: com_sun_hotspot_c1x_VMEntries 75 * Class: com_sun_hotspot_c1x_VMEntries
74 * Method: RiMethod_name 76 * Method: RiMethod_name
75 * Signature: (Ljava/lang/Object;)Ljava/lang/String; 77 * Signature: (Ljava/lang/Object;)Ljava/lang/String;
76 */ 78 */
77 JNIEXPORT jstring JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1name 79 JNIEXPORT jstring JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1name
78 (JNIEnv *, jclass, jobject); 80 (JNIEnv *, jobject, jobject);
79 81
80 /* 82 /*
81 * Class: com_sun_hotspot_c1x_VMEntries 83 * Class: com_sun_hotspot_c1x_VMEntries
82 * Method: RiSignature_lookupType 84 * Method: RiSignature_lookupType
83 * Signature: (Ljava/lang/String;Lcom/sun/cri/ri/RiType;)Lcom/sun/cri/ri/RiType; 85 * Signature: (Ljava/lang/String;Lcom/sun/cri/ri/RiType;)Lcom/sun/cri/ri/RiType;
84 */ 86 */
85 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiSignature_1lookupType 87 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiSignature_1lookupType
86 (JNIEnv *, jclass, jstring, jobject); 88 (JNIEnv *, jobject, jstring, jobject);
87 89
88 /* 90 /*
89 * Class: com_sun_hotspot_c1x_VMEntries 91 * Class: com_sun_hotspot_c1x_VMEntries
90 * Method: RiSignature_symbolToString 92 * Method: RiSignature_symbolToString
91 * Signature: (Ljava/lang/Object;)Ljava/lang/String; 93 * Signature: (Ljava/lang/Object;)Ljava/lang/String;
92 */ 94 */
93 JNIEXPORT jstring JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiSignature_1symbolToString 95 JNIEXPORT jstring JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiSignature_1symbolToString
94 (JNIEnv *, jclass, jobject); 96 (JNIEnv *, jobject, jobject);
95 97
96 /* 98 /*
97 * Class: com_sun_hotspot_c1x_VMEntries 99 * Class: com_sun_hotspot_c1x_VMEntries
98 * Method: RiType_javaClass 100 * Method: RiType_javaClass
99 * Signature: (Ljava/lang/Object;)Ljava/lang/Class; 101 * Signature: (Ljava/lang/Object;)Ljava/lang/Class;
100 */ 102 */
101 JNIEXPORT jclass JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1javaClass 103 JNIEXPORT jclass JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1javaClass
102 (JNIEnv *, jclass, jobject); 104 (JNIEnv *, jobject, jobject);
103 105
104 /* 106 /*
105 * Class: com_sun_hotspot_c1x_VMEntries 107 * Class: com_sun_hotspot_c1x_VMEntries
106 * Method: RiType_name 108 * Method: RiType_name
107 * Signature: (Ljava/lang/Object;)Ljava/lang/String; 109 * Signature: (Ljava/lang/Object;)Ljava/lang/String;
108 */ 110 */
109 JNIEXPORT jstring JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1name 111 JNIEXPORT jstring JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1name
110 (JNIEnv *, jclass, jobject); 112 (JNIEnv *, jobject, jobject);
111 113
112 114
113 /* 115 /*
114 * Class: com_sun_hotspot_c1x_VMEntries 116 * Class: com_sun_hotspot_c1x_VMEntries
115 * Method: RiConstantPool_lookupConstant 117 * Method: RiConstantPool_lookupConstant
116 * Signature: (Ljava/lang/Object;I)Ljava/lang/Object; 118 * Signature: (Ljava/lang/Object;I)Ljava/lang/Object;
117 */ 119 */
118 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupConstant 120 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupConstant
119 (JNIEnv *, jclass, jobject, jint); 121 (JNIEnv *, jobject, jobject, jint);
120 122
121 /* 123 /*
122 * Class: com_sun_hotspot_c1x_VMEntries 124 * Class: com_sun_hotspot_c1x_VMEntries
123 * Method: RiConstantPool_lookupMethod 125 * Method: RiConstantPool_lookupMethod
124 * Signature: (Ljava/lang/Object;I)Lcom/sun/cri/ri/RiMethod; 126 * Signature: (Ljava/lang/Object;I)Lcom/sun/cri/ri/RiMethod;
125 */ 127 */
126 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupMethod 128 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupMethod
127 (JNIEnv *, jclass, jobject, jint, jbyte); 129 (JNIEnv *, jobject, jobject, jint, jbyte);
128 130
129 /* 131 /*
130 * Class: com_sun_hotspot_c1x_VMEntries 132 * Class: com_sun_hotspot_c1x_VMEntries
131 * Method: RiConstantPool_lookupSignature 133 * Method: RiConstantPool_lookupSignature
132 * Signature: (Ljava/lang/Object;I)Lcom/sun/cri/ri/RiSignature; 134 * Signature: (Ljava/lang/Object;I)Lcom/sun/cri/ri/RiSignature;
133 */ 135 */
134 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupSignature 136 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupSignature
135 (JNIEnv *, jclass, jobject, jint); 137 (JNIEnv *, jobject, jobject, jint);
136 138
137 /* 139 /*
138 * Class: com_sun_hotspot_c1x_VMEntries 140 * Class: com_sun_hotspot_c1x_VMEntries
139 * Method: RiConstantPool_lookupType 141 * Method: RiConstantPool_lookupType
140 * Signature: (Ljava/lang/Object;I)Lcom/sun/cri/ri/RiType; 142 * Signature: (Ljava/lang/Object;I)Lcom/sun/cri/ri/RiType;
141 */ 143 */
142 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupType 144 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupType
143 (JNIEnv *, jclass, jobject, jint); 145 (JNIEnv *, jobject, jobject, jint);
144 146
145 /* 147 /*
146 * Class: com_sun_hotspot_c1x_VMEntries 148 * Class: com_sun_hotspot_c1x_VMEntries
147 * Method: RiConstantPool_lookupField 149 * Method: RiConstantPool_lookupField
148 * Signature: (Ljava/lang/Object;I)Lcom/sun/cri/ri/RiField; 150 * Signature: (Ljava/lang/Object;I)Lcom/sun/cri/ri/RiField;
149 */ 151 */
150 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupField 152 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupField
151 (JNIEnv *, jclass, jobject, jint); 153 (JNIEnv *, jobject, jobject, jint);
152 154
153 /* 155 /*
154 * Class: com_sun_hotspot_c1x_VMEntries 156 * Class: com_sun_hotspot_c1x_VMEntries
155 * Method: findRiType 157 * Method: findRiType
156 * Signature: (Ljava/lang/Object;)Lcom/sun/cri/ri/RiType; 158 * Signature: (Ljava/lang/Object;)Lcom/sun/cri/ri/RiType;
157 */ 159 */
158 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_findRiType 160 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_findRiType
159 (JNIEnv *, jclass, jobject); 161 (JNIEnv *, jobject, jobject);
160 162
161 /* 163 /*
162 * Class: com_sun_hotspot_c1x_VMEntries 164 * Class: com_sun_hotspot_c1x_VMEntries
163 * Method: RiRuntime_getConstantPool 165 * Method: RiRuntime_getConstantPool
164 * Signature: (Ljava/lang/Object;)Lcom/sun/cri/ri/RiConstantPool; 166 * Signature: (Ljava/lang/Object;)Lcom/sun/cri/ri/RiConstantPool;
165 */ 167 */
166 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiRuntime_1getConstantPool 168 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiRuntime_1getConstantPool
167 (JNIEnv *, jclass, jobject); 169 (JNIEnv *, jobject, jobject);
168 170
169 /* 171 /*
170 * Class: com_sun_hotspot_c1x_VMEntries 172 * Class: com_sun_hotspot_c1x_VMEntries
171 * Method: RiType_isArrayClass 173 * Method: RiType_isArrayClass
172 * Signature: (Ljava/lang/Object;)Z 174 * Signature: (Ljava/lang/Object;)Z
173 */ 175 */
174 JNIEXPORT jboolean JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1isArrayClass 176 JNIEXPORT jboolean JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1isArrayClass
175 (JNIEnv *, jclass, jobject); 177 (JNIEnv *, jobject, jobject);
176 178
177 /* 179 /*
178 * Class: com_sun_hotspot_c1x_VMEntries 180 * Class: com_sun_hotspot_c1x_VMEntries
179 * Method: RiType_isInstanceClass 181 * Method: RiType_isInstanceClass
180 * Signature: (Ljava/lang/Object;)Z 182 * Signature: (Ljava/lang/Object;)Z
181 */ 183 */
182 JNIEXPORT jboolean JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1isInstanceClass 184 JNIEXPORT jboolean JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1isInstanceClass
183 (JNIEnv *, jclass, jobject); 185 (JNIEnv *, jobject, jobject);
184 186
185 /* 187 /*
186 * Class: com_sun_hotspot_c1x_VMEntries 188 * Class: com_sun_hotspot_c1x_VMEntries
187 * Method: RiType_isInterface 189 * Method: RiType_isInterface
188 * Signature: (Ljava/lang/Object;)Z 190 * Signature: (Ljava/lang/Object;)Z
189 */ 191 */
190 JNIEXPORT jboolean JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1isInterface 192 JNIEXPORT jboolean JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1isInterface
191 (JNIEnv *, jclass, jobject); 193 (JNIEnv *, jobject, jobject);
192 194
193 /* 195 /*
194 * Class: com_sun_hotspot_c1x_VMEntries 196 * Class: com_sun_hotspot_c1x_VMEntries
195 * Method: RiMethod_accessFlags 197 * Method: RiMethod_accessFlags
196 * Signature: (Ljava/lang/Object;)I 198 * Signature: (Ljava/lang/Object;)I
197 */ 199 */
198 JNIEXPORT jint JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1accessFlags 200 JNIEXPORT jint JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1accessFlags
199 (JNIEnv *, jclass, jobject); 201 (JNIEnv *, jobject, jobject);
200 202
201 /* 203 /*
202 * Class: com_sun_hotspot_c1x_VMEntries 204 * Class: com_sun_hotspot_c1x_VMEntries
203 * Method: installCode 205 * Method: installCode
204 * Signature: (Ljava/lang/Object;[BI)V 206 * Signature: (Lcom/sun/hotspot/c1x/HotSpotTargetMethod;)V
205 */ 207 */
206 JNIEXPORT void JNICALL Java_com_sun_hotspot_c1x_VMEntries_installCode 208 JNIEXPORT void JNICALL Java_com_sun_hotspot_c1x_VMEntries_installCode
207 (JNIEnv *, jclass, jobject, jbyteArray, jint); 209 (JNIEnv *, jobject, jobject);
208 210
209 /* 211 /*
210 * Class: com_sun_hotspot_c1x_VMEntries 212 * Class: com_sun_hotspot_c1x_VMEntries
211 * Method: getConfiguration 213 * Method: getConfiguration
212 * Signature: ()Lcom/sun/hotspot/c1x/HotSpotVMConfig; 214 * Signature: ()Lcom/sun/hotspot/c1x/HotSpotVMConfig;
213 */ 215 */
214 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_getConfiguration 216 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_getConfiguration
215 (JNIEnv *, jclass); 217 (JNIEnv *, jobject);
216 218
217 219
218 extern JNINativeMethod VMEntries_methods[]; 220 extern JNINativeMethod VMEntries_methods[];
219 int VMEntries_methods_count(); 221 int VMEntries_methods_count();
220
221 #endif