Lines Matching defs:loc

165     static int makeDesc(int loc, int fmt) {
166 int desc = (loc << LOC_SHIFT) | fmt;
167 assert(descLoc(desc) == loc);
171 int fetchDesc(int loc, int fmt) {
172 byte b1 = bytes[loc];
176 byte b2 = bytes[loc+1];
181 // Stored loc field is difference between its own loc and next loc.
182 return value + (loc << LOC_SHIFT);
184 boolean storeDesc(int loc, int fmt, int desc) {
187 int value = desc - (loc << LOC_SHIFT);
191 assert(bytes[loc+0] == UNUSED_BYTE);
192 assert(bytes[loc+1] == UNUSED_BYTE);
196 bytes[loc+0] = b1;
197 bytes[loc+1] = b2;
198 assert(fetchDesc(loc, fmt) == desc);
203 assert(bytes[loc] == UNUSED_BYTE);
206 bytes[loc] = b1;
207 assert(fetchDesc(loc, fmt) == desc);
214 bytes[loc] = OVERFLOW_BYTE;
215 assert(fmt==U1_FORMAT || (bytes[loc+1]=(byte)bigDescs[BIGSIZE])!=999);
218 void storeIndex(int loc, int fmt, int value) {
219 storeIndex(bytes, loc, fmt, value);
222 void storeIndex(byte[] bytes, int loc, int fmt, int value) {
226 bytes[loc+0] = (byte)(value >> 8);
227 bytes[loc+1] = (byte)(value >> 0);
231 bytes[loc] = (byte)value;
246 public Fixup(int loc, int fmt, Entry entry) {
247 this.desc = makeDesc(loc, fmt);
286 int loc = descLoc(thisDesc);
288 if (bytes != null && bytes[loc] != OVERFLOW_BYTE) {
289 next = fetchDesc(loc, fmt);
293 assert(fmt==U1_FORMAT || bytes == null || bytes[loc+1]==(byte)bigIndex);
380 byte[] bytes, int loc, int fmt,
384 if (loc == SPECIAL_LOC && fmt == SPECIAL_FMT) {
400 f.add(loc, fmt, e);
481 for (int loc = 0; loc < bytes.length; loc++) {
482 if (loc == nextLoc && loc+1 < bytes.length) {
484 Entry e = ConstantPool.getUtf8Entry("L"+loc);
485 f.add(loc, fmt, e);
495 locs[iptr] = loc;
497 indexes[iptr++] = (loc & 0xFF);
499 indexes[iptr++] = ((loc & 0xFF) << 8) | ((loc+1) & 0xFF);
500 ++loc; // skip a byte
504 bytes[loc] = (byte)loc;
539 for (int loc = 0; loc < bytes.length; loc++) {
540 if (bytes[loc] != (byte)loc) {
541 System.out.println("** ["+loc+"] = "+bytes[loc]+" != "+(byte)loc);