public static synchronized int findOrCreateStringLiteral(VM_Atom literal) throws java.io.UTFDataFormatException { Integer slot = (Integer)stringLiterals.get(literal); if (slot != null) return slot.intValue();
public static synchronized Offset findOrCreateStringLiteral(VM_Atom literal) throws java.io.UTFDataFormatException { Integer off = (Integer)stringLiterals.get(literal); if (off != null) return Offset.fromIntSignExtend(off.intValue());
  public static synchronized int findOrCreateStringLiteral(VM_Atom literal) throws java.io.UTFDataFormatException {    Integer slot = (Integer)stringLiterals.get(literal);    if (slot != null) return slot.intValue();    String stringValue = literal.toUnicodeString();    if (VM.runningVM) stringValue = stringValue.intern();    int newSlot = allocateSlot(STRING_LITERAL);    stringLiterals.put(literal, new Integer(newSlot));    setSlotContents(newSlot, stringValue);    return newSlot;  }