Searched refs:cpool (Results 1 – 10 of 10) sorted by relevance
| /openbsd-src/gnu/usr.bin/gcc/gcc/java/ |
| H A D | constants.c | 41 set_constant_entry (cpool, index, tag, value) in set_constant_entry() argument 42 CPool *cpool; in set_constant_entry() 47 if (cpool->data == NULL) 49 cpool->capacity = 100; 50 cpool->tags = xmalloc (sizeof(uint8) * cpool->capacity); 51 cpool->data = xmalloc (sizeof(jword) * cpool->capacity); 52 cpool->count = 1; 54 if (index >= cpool->capacity) 56 cpool->capacity *= 2; 57 if (index >= cpool->capacity) [all …]
|
| H A D | jcf-reader.c | 268 jcf->cpool.tags = ALLOC (JPOOL_SIZE (jcf)); 269 jcf->cpool.data = ALLOC (sizeof (jword) * JPOOL_SIZE (jcf)); 270 jcf->cpool.tags[0] = 0; 284 jcf->cpool.tags[i] = constant_kind; 289 jcf->cpool.data[i] = JCF_readu2 (jcf); 295 jcf->cpool.data[i] = JCF_readu2 (jcf); 296 jcf->cpool.data[i] |= JCF_readu2 (jcf) << 16; 300 jcf->cpool.data[i] = JCF_readu4 (jcf); 304 jcf->cpool.data[i] = JCF_readu4 (jcf); 306 jcf->cpool.tags[i] = 0; [all …]
|
| H A D | jcf.h | 136 CPool cpool; member 147 #define JPOOL_SIZE(JCF) CPOOL_COUNT(&(JCF)->cpool) 148 #define JPOOL_TAG(JCF, INDEX) ((JCF)->cpool.tags[INDEX]) 151 #define JPOOL_UINT(JCF, INDEX) CPOOL_UINT(&(JCF)->cpool, INDEX) /*deprecated*/ 154 #define JPOOL_USHORT1(JCF, INDEX) CPOOL_USHORT1(&(JCF)->cpool, INDEX) 157 #define JPOOL_USHORT2(JCF, INDEX) CPOOL_USHORT2(&(JCF)->cpool, INDEX) 181 CPOOL_FINISH(&(JCF)->cpool); \ 195 CPOOL_INIT(&(JCF)->cpool), (JCF)->java_source = 0, (JCF)->zipd = 0, \
|
| H A D | jcf-write.c | 239 CPool cpool; member 798 i = find_constant1 (&state->cpool, CONSTANT_Integer, 811 return find_constant2 (&state->cpool, CONSTANT_Long, 826 return find_constant1 (&state->cpool, CONSTANT_Integer, 842 return find_constant1 (&state->cpool, CONSTANT_Float, (jword)words[0]); 844 return find_constant2 (&state->cpool, CONSTANT_Double, 849 return find_string_constant (&state->cpool, value); 890 int index = find_fieldref_index (&state->cpool, field); 1574 push_constant1 (find_string_constant (&state->cpool, exp), state); 2239 int index = find_class_constant (&state->cpool, TREE_OPERAND (exp, 1)); [all …]
|
| H A D | jcf-parse.c | 52 #define JPOOL_UTF(JCF, INDEX) CPOOL_UTF(&(JCF)->cpool, INDEX) 63 (JCF)->cpool.data[INDEX] = (jword) get_identifier (text); \ 116 CPool *cpool = &jcf->cpool; local 117 int size = CPOOL_COUNT(cpool); 123 ggc_mark_tree ((tree) cpool->data[index]); 271 return (tree) jcf->cpool.data[index]; 353 jcf->cpool.data [index] = (jword) value; 436 jcf->cpool.data[i] = (jword) this_class; 466 jcf->cpool.data[i] = (jword) type; in get_class_constant() 470 type = (tree) jcf->cpool.data[i]; in get_class_constant()
|
| H A D | verify.c | 927 field_signature = COMPONENT_REF_SIGNATURE (¤t_jcf->cpool, index); 933 int clindex = COMPONENT_REF_CLASS_INDEX (¤t_jcf->cpool, 1031 sig = COMPONENT_REF_SIGNATURE (¤t_jcf->cpool, index); 1033 (current_jcf, COMPONENT_REF_CLASS_INDEX (¤t_jcf->cpool, 1038 method_name = COMPONENT_REF_NAME (¤t_jcf->cpool, index);
|
| H A D | jcf-dump.c | 113 if (CPOOL_INDEX_IN_RANGE (&jcf->cpool, index) 403 if (! CPOOL_INDEX_IN_RANGE (&jcf->cpool, index)) 439 if (! CPOOL_INDEX_IN_RANGE (&jcf->cpool, n))
|
| H A D | expr.c | 2046 tree method_signature = COMPONENT_REF_SIGNATURE(¤t_jcf->cpool, method_ref_index); 2047 tree method_name = COMPONENT_REF_NAME (¤t_jcf->cpool, method_ref_index); 2049 (current_jcf, COMPONENT_REF_CLASS_INDEX(¤t_jcf->cpool, method_ref_index)); 2379 COMPONENT_REF_CLASS_INDEX (¤t_jcf->cpool, 2382 tree field_name = COMPONENT_REF_NAME (¤t_jcf->cpool, field_ref_index); 2383 tree field_signature = COMPONENT_REF_SIGNATURE (¤t_jcf->cpool,
|
| H A D | java-tree.h | 1044 #define TYPE_CPOOL(T) (TYPE_LANG_SPECIFIC(T)->cpool) 1072 struct CPool * GTY ((skip (""))) cpool;
|
| H A D | ChangeLog | 7055 (struct lang_type): New fields `cpool' and `cpool_data_ref'. 12945 (get_constant): Use current_jcf.cpool instead of tree_constant_pool.
|