/openjdk10/jdk/src/java.base/share/classes/com/sun/java/util/jar/pack/ |
H A D | ClassReader.java | 116 return i == 0 ? null : cls.cpMap[i]; 235 Entry[] cpMap = new Entry[length]; 236 cpMap[0] = null; 242 cpMap[i] = ConstantPool.getUtf8Entry(in.readUTF()); 246 cpMap[i] = ConstantPool.getLiteralEntry(in.readInt()); 251 cpMap[i] = ConstantPool.getLiteralEntry(in.readFloat()); 256 cpMap[i] = ConstantPool.getLiteralEntry(in.readLong()); 257 cpMap[++i] = null; 262 cpMap[i] = ConstantPool.getLiteralEntry(in.readDouble()); 263 cpMap[ [all...] |
H A D | PackageReader.java | 437 Index initCPIndex(byte tag, Entry[] cpMap) { argument 439 for (int i = 0; i < cpMap.length; i++) { 440 Utils.log.fine("cp.add "+cpMap[i]); 443 Index index = ConstantPool.makeIndex(ConstantPool.tagName(tag), cpMap); 475 Entry[] cpMap = new Entry[len]; 477 Utils.log.info("Reading "+cpMap.length+" "+ConstantPool.tagName(tag)+" entries..."); 481 readUtf8Bands(cpMap); 484 cp_Int.expectLength(cpMap.length); 486 for (int i = 0; i < cpMap.length; i++) { 488 cpMap[ 693 readUtf8Bands(Entry[] cpMap) argument 806 readSignatureBands(Entry[] cpMap) argument 837 readMemberRefs(byte tag, Entry[] cpMap, CPRefBand cp_class, CPRefBand cp_desc) argument [all...] |
H A D | ConstantPool.java | 1062 protected Entry[] cpMap; field in class:ConstantPool.Index 1065 return cpMap; 1070 protected Index(String debugName, Entry[] cpMap) { argument 1072 setMap(cpMap); 1074 protected void setMap(Entry[] cpMap) { argument 1076 this.cpMap = cpMap; 1083 cpMap = new Entry[cpMapList.size()]; 1084 cpMapList.toArray(cpMap); 1085 setMap(cpMap); 1218 makeIndex(String debugName, Entry[] cpMap) argument [all...] |
H A D | PackageWriter.java | 517 Entry[] cpMap = index.cpMap; 519 Utils.log.info("Writing "+cpMap.length+" "+ConstantPool.tagName(tag)+" entries..."); 523 printArrayTo(ps, cpMap, 0, cpMap.length); 529 writeUtf8Bands(cpMap); 532 for (int i = 0; i < cpMap.length; i++) { 533 NumberEntry e = (NumberEntry) cpMap[i]; 539 for (int i = 0; i < cpMap.length; i++) { 540 NumberEntry e = (NumberEntry) cpMap[ 644 writeUtf8Bands(Entry[] cpMap) argument 771 writeSignatureBands(Entry[] cpMap) argument 781 writeMemberRefs(byte tag, Entry[] cpMap, CPRefBand cp_class, CPRefBand cp_desc) argument [all...] |
H A D | ClassWriter.java | 121 Entry[] cpMap = cls.cpMap; 122 writeShort(cpMap.length); 123 for (int i = 0; i < cpMap.length; i++) { 124 Entry e = cpMap[i]; 125 assert((e == null) == (i == 0 || cpMap[i-1] != null && cpMap[i-1].isDoubleWord()));
|
H A D | Instruction.java | 167 public ConstantPool.Entry getCPRef(ConstantPool.Entry[] cpMap) { argument 169 return (index < 0) ? null : cpMap[index]; 356 public String toString(ConstantPool.Entry[] cpMap) { argument 371 if (idx >= 0) s += (cpMap == null) ? ""+idx : "="+cpMap[idx].stringValue(); 652 public static void opcodeChecker(byte[] code, ConstantPool.Entry[] cpMap, argument 661 ConstantPool.Entry e = i.getCPRef(cpMap); 674 + i.toString(cpMap);
|
H A D | Code.java | 153 // References (to a local cpMap) are embedded in the bytes. 154 ConstantPool.Entry[] cpMap = getCPMap(); 160 refs.add(cpMap[cpref]);
|
H A D | Package.java | 187 Entry[] cpMap; field in class:Package.Class 291 return cpMap; 294 protected void setCPMap(Entry[] cpMap) { argument 295 this.cpMap = cpMap; 513 return cpMap;
|
H A D | Attribute.java | 749 // References (to a local cpMap) are embedded in the bytes. 1263 // Used when reading a class file (local refs resolved with local cpMap). 1345 Entry[] cpMap = holder.getCPMap(); 1346 globalRef = (localRef >= 0 && localRef < cpMap.length 1347 ? cpMap[localRef] 1554 final Entry[] cpMap = new Entry[maxVal+1]; 1555 for (int i = 0; i < cpMap.length; i++) { 1557 cpMap[i] = ConstantPool.getLiteralEntry(new Integer(i)); 1560 cls.cpMap = cpMap; [all...] |
H A D | BandStructure.java | 2448 int seq = ConstantPool.TAG_ORDER[ix.cpMap[0].tag]; 2695 static void printArrayTo(PrintStream ps, Entry[] cpMap, int start, int end) { argument 2696 printArrayTo(ps, cpMap, start, end, false); 2698 static void printArrayTo(PrintStream ps, Entry[] cpMap, int start, int end, boolean showTags) { argument 2702 Entry e = cpMap[start+i];
|
/openjdk10/jdk/src/jdk.pack/share/native/common-unpack/ |
H A D | unpack.h | 497 void read_Utf8_values(entry* cpMap, int len); 498 void read_single_words(band& cp_band, entry* cpMap, int len); 499 void read_double_words(band& cp_bands, entry* cpMap, int len); 500 void read_single_refs(band& cp_band, byte refTag, entry* cpMap, int len); 501 void read_double_refs(band& cp_band, byte ref1Tag, byte ref2Tag, entry* cpMap, int len); 502 void read_signature_values(entry* cpMap, int len); 503 void read_method_handle(entry* cpMap, int len); 504 void read_method_type(entry* cpMap, int len); 505 void read_bootstrap_methods(entry* cpMap, int len);
|
H A D | unpack.cpp | 986 entry* cpMap = &entries[tag_base[tag]]; local 987 tag_index[tag].init(tag_count[tag], cpMap, tag); 1064 void unpacker::read_Utf8_values(entry* cpMap, int len) { argument 1222 bytes& value = cpMap[i].value.b; 1231 htref = &cpMap[i]; 1242 void unpacker::read_single_words(band& cp_band, entry* cpMap, int len) { argument 1245 cpMap[i].value.i = cp_band.getInt(); // coding handles signs OK 1250 void unpacker::read_double_words(band& cp_bands, entry* cpMap, int len) { argument 1256 cpMap[i].value.l = cp_band_hi.getLong(cp_band_lo, true); 1263 void unpacker::read_single_refs(band& cp_band, byte refTag, entry* cpMap, in argument 1290 read_double_refs(band& cp_band, byte ref1Tag, byte ref2Tag, entry* cpMap, int len) argument 1313 read_signature_values(entry* cpMap, int len) argument 1357 read_method_handle(entry* cpMap, int len) argument 1374 read_method_type(entry* cpMap, int len) argument 1389 read_bootstrap_methods(entry* cpMap, int len) argument 1424 entry* cpMap = &cp.entries[base]; local [all...] |