public static synchronized int findOrCreateIntLiteral(int literal) { Integer slot = (Integer)intLiterals.get(new Integer(literal)); if (slot != null) return slot.intValue(); int newSlot = allocateSlot(INT_LITERAL); intLiterals.put(new Integer(literal), new Integer(newSlot)); slots[newSlot] = literal; return newSlot;
public static synchronized Offset findOrCreateIntLiteral(int literal) { Integer off = (Integer)intLiterals.get(new Integer(literal)); if (off != null) return Offset.fromIntSignExtend(off.intValue()); int newOff = allocateSlot(INT_LITERAL); intLiterals.put(new Integer(literal), new Integer(newOff)); Offset offset = Offset.fromIntSignExtend(newOff); setSlotContents(offset, literal); return offset;
  public static synchronized int findOrCreateIntLiteral(int literal) {    Integer slot = (Integer)intLiterals.get(new Integer(literal));    if (slot != null) return slot.intValue();    int newSlot = allocateSlot(INT_LITERAL);    intLiterals.put(new Integer(literal), new Integer(newSlot));    slots[newSlot] = literal;    return newSlot;  }