public static synchronized int findOrCreateLongLiteral(long literal) { Integer slot = (Integer)longLiterals.get(new Long(literal)); if (slot != null) return slot.intValue(); int newSlot = allocateSlot(LONG_LITERAL); longLiterals.put(new Long(literal), new Integer(newSlot)); setSlotContents(newSlot, literal); return newSlot;
public static synchronized Offset findOrCreateLongLiteral(long literal) { Integer off = (Integer)longLiterals.get(new Long(literal)); if (off != null) return Offset.fromIntSignExtend(off.intValue()); int newOff = allocateSlot(LONG_LITERAL); longLiterals.put(new Long(literal), new Integer(newOff)); Offset offset = Offset.fromIntSignExtend(newOff); setSlotContents(offset, literal); return offset;
  public static synchronized int findOrCreateLongLiteral(long literal) {    Integer slot = (Integer)longLiterals.get(new Long(literal));    if (slot != null) return slot.intValue();    int newSlot = allocateSlot(LONG_LITERAL);    longLiterals.put(new Long(literal), new Integer(newSlot));    setSlotContents(newSlot, literal);    return newSlot;  }