Mercurial > hg > graal-compiler
comparison src/share/vm/c1x/c1x_VMEntries.hpp @ 1413:1ecc8f0aad00
Draft implementation of HotSpot CRI / first method compiling without exception.
author | Thomas Wuerthinger <thomas.wuerthinger@gmail.com> |
---|---|
date | Tue, 18 May 2010 17:43:37 +0200 |
parents | 9195b99c841b |
children | e1a275dbc8cd |
comparison
equal
deleted
inserted
replaced
1412:9195b99c841b | 1413:1ecc8f0aad00 |
---|---|
22 * | 22 * |
23 */ | 23 */ |
24 | 24 |
25 #ifndef _Included_com_sun_hotspot_c1x_VMEntries | 25 #ifndef _Included_com_sun_hotspot_c1x_VMEntries |
26 #define _Included_com_sun_hotspot_c1x_VMEntries | 26 #define _Included_com_sun_hotspot_c1x_VMEntries |
27 #ifdef __cplusplus | |
28 extern "C" { | |
29 | 27 |
30 #define CC (char*) /*cast a literal from (const char*)*/ | 28 #define CC (char*) /*cast a literal from (const char*)*/ |
31 #define FN_PTR(f) CAST_FROM_FN_PTR(void*, &f) | 29 #define FN_PTR(f) CAST_FROM_FN_PTR(void*, &f) |
32 | 30 |
31 /* | |
32 * Class: com_sun_hotspot_c1x_VMEntries | |
33 * Method: RiMethod_code | |
34 * Signature: (Ljava/lang/Object;)[B | |
35 */ | |
36 JNIEXPORT jbyteArray JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1code | |
37 (JNIEnv *, jclass, jobject); | |
33 | 38 |
34 #endif | 39 /* |
35 /* | 40 * Class: com_sun_hotspot_c1x_VMEntries |
36 * Class: com_sun_hotspot_c1x_VMEntries | 41 * Method: RiMethod_maxStackSize |
37 * Method: RiMethod_code | 42 * Signature: (Ljava/lang/Object;)I |
38 * Signature: (Ljava/lang/Object;)[B | 43 */ |
39 */ | 44 JNIEXPORT jint JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1maxStackSize |
40 JNIEXPORT jbyteArray JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1code | 45 (JNIEnv *, jclass, jobject); |
41 (JNIEnv *, jclass, jobject); | |
42 | 46 |
47 /* | |
48 * Class: com_sun_hotspot_c1x_VMEntries | |
49 * Method: RiMethod_maxLocals | |
50 * Signature: (Ljava/lang/Object;)I | |
51 */ | |
52 JNIEXPORT jint JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1maxLocals | |
53 (JNIEnv *, jclass, jobject); | |
54 | |
55 | |
56 /* | |
57 * Class: com_sun_hotspot_c1x_VMEntries | |
58 * Method: RiMethod_holder | |
59 * Signature: (Ljava/lang/Object;)Lcom/sun/cri/ri/RiType; | |
60 */ | |
61 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1holder | |
62 (JNIEnv *, jclass, jobject); | |
63 | |
64 /* | |
65 * Class: com_sun_hotspot_c1x_VMEntries | |
66 * Method: RiMethod_signature | |
67 * Signature: (Ljava/lang/Object;)Lcom/sun/cri/ri/RiSignature; | |
68 */ | |
69 JNIEXPORT jstring JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1signature | |
70 (JNIEnv *, jclass, jobject); | |
71 | |
72 /* | |
73 * Class: com_sun_hotspot_c1x_VMEntries | |
74 * Method: RiMethod_name | |
75 * Signature: (Ljava/lang/Object;)Ljava/lang/String; | |
76 */ | |
77 JNIEXPORT jstring JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiMethod_1name | |
78 (JNIEnv *, jclass, jobject); | |
79 | |
80 /* | |
81 * Class: com_sun_hotspot_c1x_VMEntries | |
82 * Method: RiSignature_lookupType | |
83 * Signature: (Ljava/lang/String;Lcom/sun/cri/ri/RiType;)Lcom/sun/cri/ri/RiType; | |
84 */ | |
85 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiSignature_1lookupType | |
86 (JNIEnv *, jclass, jstring, jobject); | |
87 | |
88 /* | |
89 * Class: com_sun_hotspot_c1x_VMEntries | |
90 * Method: RiSignature_symbolToString | |
91 * Signature: (Ljava/lang/Object;)Ljava/lang/String; | |
92 */ | |
93 JNIEXPORT jstring JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiSignature_1symbolToString | |
94 (JNIEnv *, jclass, jobject); | |
95 | |
96 /* | |
97 * Class: com_sun_hotspot_c1x_VMEntries | |
98 * Method: RiType_javaClass | |
99 * Signature: (Ljava/lang/Object;)Ljava/lang/Class; | |
100 */ | |
101 JNIEXPORT jclass JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1javaClass | |
102 (JNIEnv *, jclass, jobject); | |
103 | |
104 /* | |
105 * Class: com_sun_hotspot_c1x_VMEntries | |
106 * Method: RiType_name | |
107 * Signature: (Ljava/lang/Object;)Ljava/lang/String; | |
108 */ | |
109 JNIEXPORT jstring JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1name | |
110 (JNIEnv *, jclass, jobject); | |
111 | |
112 | |
113 /* | |
114 * Class: com_sun_hotspot_c1x_VMEntries | |
115 * Method: RiConstantPool_lookupConstant | |
116 * Signature: (Ljava/lang/Object;I)Ljava/lang/Object; | |
117 */ | |
118 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupConstant | |
119 (JNIEnv *, jclass, jobject, jint); | |
120 | |
121 /* | |
122 * Class: com_sun_hotspot_c1x_VMEntries | |
123 * Method: RiConstantPool_lookupMethod | |
124 * Signature: (Ljava/lang/Object;I)Lcom/sun/cri/ri/RiMethod; | |
125 */ | |
126 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupMethod | |
127 (JNIEnv *, jclass, jobject, jint, jbyte); | |
128 | |
129 /* | |
130 * Class: com_sun_hotspot_c1x_VMEntries | |
131 * Method: RiConstantPool_lookupSignature | |
132 * Signature: (Ljava/lang/Object;I)Lcom/sun/cri/ri/RiSignature; | |
133 */ | |
134 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupSignature | |
135 (JNIEnv *, jclass, jobject, jint); | |
136 | |
137 /* | |
138 * Class: com_sun_hotspot_c1x_VMEntries | |
139 * Method: RiConstantPool_lookupType | |
140 * Signature: (Ljava/lang/Object;I)Lcom/sun/cri/ri/RiType; | |
141 */ | |
142 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupType | |
143 (JNIEnv *, jclass, jobject, jint); | |
144 | |
145 /* | |
146 * Class: com_sun_hotspot_c1x_VMEntries | |
147 * Method: RiConstantPool_lookupField | |
148 * Signature: (Ljava/lang/Object;I)Lcom/sun/cri/ri/RiField; | |
149 */ | |
150 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiConstantPool_1lookupField | |
151 (JNIEnv *, jclass, jobject, jint); | |
152 | |
153 /* | |
154 * Class: com_sun_hotspot_c1x_VMEntries | |
155 * Method: findRiType | |
156 * Signature: (Ljava/lang/Object;)Lcom/sun/cri/ri/RiType; | |
157 */ | |
158 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_findRiType | |
159 (JNIEnv *, jclass, jobject); | |
160 | |
161 /* | |
162 * Class: com_sun_hotspot_c1x_VMEntries | |
163 * Method: RiRuntime_getConstantPool | |
164 * Signature: (Ljava/lang/Object;)Lcom/sun/cri/ri/RiConstantPool; | |
165 */ | |
166 JNIEXPORT jobject JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiRuntime_1getConstantPool | |
167 (JNIEnv *, jclass, jobject); | |
168 | |
169 /* | |
170 * Class: com_sun_hotspot_c1x_VMEntries | |
171 * Method: RiType_isArrayClass | |
172 * Signature: (Ljava/lang/Object;)Z | |
173 */ | |
174 JNIEXPORT jboolean JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1isArrayClass | |
175 (JNIEnv *, jclass, jobject); | |
176 | |
177 /* | |
178 * Class: com_sun_hotspot_c1x_VMEntries | |
179 * Method: RiType_isInstanceClass | |
180 * Signature: (Ljava/lang/Object;)Z | |
181 */ | |
182 JNIEXPORT jboolean JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1isInstanceClass | |
183 (JNIEnv *, jclass, jobject); | |
184 | |
185 /* | |
186 * Class: com_sun_hotspot_c1x_VMEntries | |
187 * Method: RiType_isInterface | |
188 * Signature: (Ljava/lang/Object;)Z | |
189 */ | |
190 JNIEXPORT jboolean JNICALL Java_com_sun_hotspot_c1x_VMEntries_RiType_1isInterface | |
191 (JNIEnv *, jclass, jobject); | |
43 | 192 |
44 extern JNINativeMethod VMEntries_methods[]; | 193 extern JNINativeMethod VMEntries_methods[]; |
45 int VMEntries_methods_count(); | 194 int VMEntries_methods_count(); |
46 | 195 |
47 #ifdef __cplusplus | |
48 } | |
49 #endif | 196 #endif |
50 #endif |