/** Generates Jasmin Value String */ @Override public String getJasminValue(Map<Unit, String> instToLabel) { // some benchmarks fail because of the returned string larger than // the possible buffer size. StringBuffer buf = new StringBuffer(); if (mTags.size() != mUnits.size()) { throw new RuntimeException("Sizes must match!"); } Iterator<Tag> tagIt = mTags.iterator(); Iterator<Unit> unitIt = mUnits.iterator(); while (tagIt.hasNext()) { Unit unit = unitIt.next(); Tag tag = tagIt.next(); buf.append("%" + instToLabel.get(unit) + "%" + new String(Base64.encode((tag).getValue()))); } return buf.toString(); }
Tag tag = (Tag) it.next(); if (tag instanceof Attribute) { emit(".method_attribute " + tag.getName() + " \"" + new String(Base64.encode(tag.getValue())) + "\"");