for (int i=0; i<upOffset-fpOffset; i+=BYTES_IN_STACKSLOT) { Word content = VM_Magic.getWordAtOffset(stack, i+fpOffset);
for (int i=0; fpOffset.sLT(upOffset); i+=BYTES_IN_STACKSLOT, fpOffset = fpOffset.add(BYTES_IN_STACKSLOT)) { Word content = VM_Magic.getWordAtOffset(stack, fpOffset);
  private static void dumpStackContent(byte[] stack, int fpOffset) {    VM.disableGC();    Address upper = VM_Magic.objectAsAddress(stack).add(fpOffset).loadAddress();    int upOffset = upper.diff(VM_Magic.objectAsAddress(stack)).toInt();    VM.enableGC();    int cmid = VM_Magic.getIntAtOffset(stack,                  fpOffset + STACKFRAME_METHOD_ID_OFFSET);    VM_OptCompiledMethod cm =       (VM_OptCompiledMethod)VM_CompiledMethods.getCompiledMethod(cmid);    VM.sysWrite("stack of "+cm.getMethod()+"\n");    VM.sysWrite(" NV area offset "+cm.getUnsignedNonVolatileOffset()+"\n");    VM.sysWrite("   first NV GPR "+cm.getFirstNonVolatileGPR()+"\n");    VM.sysWrite("   first NV FPR "+cm.getFirstNonVolatileFPR()+"\n");    for (int i=0; i<upOffset-fpOffset; i+=BYTES_IN_STACKSLOT) {      Word content = VM_Magic.getWordAtOffset(stack, i+fpOffset);      VM.sysWrite("    0x");      VM.sysWrite(content);      VM.sysWrite("      "+i+"\n");    }  }