fields = getFieldsAsVector(klass);
fields = getFieldsAsArrayList(klass);
  public void transform () {    // store the object's fields in a Vector    fields = getFieldsAsVector(klass);    // create a scalar for each field. initialize the scalar to     // default values before the object's def    OPT_RegisterOperand[] scalars = new OPT_RegisterOperand[fields.size()];    OPT_RegisterOperand def = reg.defList;    OPT_Instruction defI = def.instruction;    for (int i = 0; i < fields.size(); i++) {      VM_Field f = (VM_Field)fields.elementAt(i);      OPT_Operand defaultValue = OPT_IRTools.getDefaultOperand(f.getType());      scalars[i] = OPT_IRTools.moveIntoRegister(ir.regpool, defI, defaultValue);      scalars[i].type = f.getType();    }    // now remove the def    if (DEBUG)      System.out.println("Removing " + defI);    OPT_DefUse.removeInstructionAndUpdateDU(defI);    // now handle the uses    for (OPT_RegisterOperand use = reg.useList; use != null;          use = (OPT_RegisterOperand)use.getNext()) {      scalarReplace(use, scalars);    }  }