equal
deleted
inserted
replaced
106 GEN_OFFS_NAME(Type,Name,Type) |
106 GEN_OFFS_NAME(Type,Name,Type) |
107 |
107 |
108 #define GEN_SIZE(Type) \ |
108 #define GEN_SIZE(Type) \ |
109 switch(gen_variant) { \ |
109 switch(gen_variant) { \ |
110 case GEN_OFFSET: \ |
110 case GEN_OFFSET: \ |
111 printf("#define SIZE_%-35s %ld\n", \ |
111 printf("#define SIZE_%-35s %ld\n", \ |
112 #Type, sizeof(Type)); \ |
112 #Type, sizeof(Type)); \ |
113 break; \ |
113 break; \ |
114 case GEN_INDEX: \ |
114 case GEN_INDEX: \ |
115 printf("#define IDX_SIZE_%-35s %d\n", \ |
115 printf("#define IDX_SIZE_%-35s %d\n", \ |
116 #Type, index++); \ |
116 #Type, index++); \ |
226 GEN_OFFS(Symbol, _length); |
226 GEN_OFFS(Symbol, _length); |
227 GEN_OFFS(Symbol, _body); |
227 GEN_OFFS(Symbol, _body); |
228 printf("\n"); |
228 printf("\n"); |
229 |
229 |
230 GEN_OFFS(Method, _constMethod); |
230 GEN_OFFS(Method, _constMethod); |
231 GEN_OFFS(Method, _constants); |
|
232 GEN_OFFS(Method, _access_flags); |
231 GEN_OFFS(Method, _access_flags); |
233 printf("\n"); |
232 printf("\n"); |
234 |
233 |
|
234 GEN_OFFS(ConstMethod, _constants); |
235 GEN_OFFS(ConstMethod, _flags); |
235 GEN_OFFS(ConstMethod, _flags); |
236 GEN_OFFS(ConstMethod, _code_size); |
236 GEN_OFFS(ConstMethod, _code_size); |
237 GEN_OFFS(ConstMethod, _name_index); |
237 GEN_OFFS(ConstMethod, _name_index); |
238 GEN_OFFS(ConstMethod, _signature_index); |
238 GEN_OFFS(ConstMethod, _signature_index); |
239 printf("\n"); |
239 printf("\n"); |
262 GEN_OFFS(CodeBlob, _frame_size); |
262 GEN_OFFS(CodeBlob, _frame_size); |
263 printf("\n"); |
263 printf("\n"); |
264 |
264 |
265 GEN_OFFS(nmethod, _method); |
265 GEN_OFFS(nmethod, _method); |
266 GEN_OFFS(nmethod, _dependencies_offset); |
266 GEN_OFFS(nmethod, _dependencies_offset); |
267 GEN_OFFS(nmethod, _oops_offset); |
267 GEN_OFFS(nmethod, _metadata_offset); |
268 GEN_OFFS(nmethod, _scopes_data_offset); |
268 GEN_OFFS(nmethod, _scopes_data_offset); |
269 GEN_OFFS(nmethod, _scopes_pcs_offset); |
269 GEN_OFFS(nmethod, _scopes_pcs_offset); |
270 GEN_OFFS(nmethod, _handler_table_offset); |
270 GEN_OFFS(nmethod, _handler_table_offset); |
271 GEN_OFFS(nmethod, _deoptimize_offset); |
271 GEN_OFFS(nmethod, _deoptimize_offset); |
272 GEN_OFFS(nmethod, _orig_pc_offset); |
272 GEN_OFFS(nmethod, _orig_pc_offset); |