Home | History | Annotate | Download | only in instruction

Lines Matching refs:offset

83     protected void readInfo(byte[] code, int offset)
86 offset += -offset & 3;
89 defaultOffset = readInt(code, offset); offset += 4;
90 int jumpOffsetCount = readInt(code, offset); offset += 4;
92 // Read the matches-offset pairs.
98 cases[index] = readInt(code, offset); offset += 4;
99 jumpOffsets[index] = readInt(code, offset); offset += 4;
104 protected void writeInfo(byte[] code, int offset)
107 while ((offset & 3) != 0)
109 writeByte(code, offset++, 0);
113 writeInt(code, offset, defaultOffset); offset += 4;
114 writeInt(code, offset, cases.length); offset += 4;
116 // Write the matches-offset pairs.
119 writeInt(code, offset, cases[index]); offset += 4;
120 writeInt(code, offset, jumpOffsets[index]); offset += 4;
125 public int length(int offset)
127 return 1 + (-(offset+1) & 3) + 8 + cases.length * 8;
131 public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, InstructionVisitor instructionVisitor)
133 instructionVisitor.visitLookUpSwitchInstruction(clazz, method, codeAttribute, offset, this);