os.writeCMP(r, arrayLengthOffset, index.getRegister());
os.writeCMP(refr, arrayLengthOffset, index.getRegister());
	private final void checkBounds(RefItem ref, IntItem index) {		final Label ok = new Label(curInstrLabel + "$$cbok");		// CMP length, index		assertCondition(ref.isRegister(), "ref must be in a register");		final Register r = ref.getRegister();		if (index.isConstant()) {			os.writeCMP_Const(r, arrayLengthOffset, index.getValue());		} else {			//BootLog.debug("index.kind=" + index.getKind());			os.writeCMP(r, arrayLengthOffset, index.getRegister());		}		os.writeJCC(ok, X86Constants.JA);		// Signal ArrayIndexOutOfBounds		os.writeINT(5);		os.setObjectRef(ok);	}