VM_Entrypoints.arrayIndexTrapParamField.getOffsetAsInt(),
VM_Entrypoints.arrayIndexTrapParamField.getOffset(),
  private final void genBoundsCheck (VM_Assembler asm, byte indexReg, byte arrayRefReg ) {     asm.emitCMP_RegDisp_Reg(arrayRefReg,                            VM_ObjectModel.getArrayLengthOffset().toInt(), indexReg);  // compare index to array length    VM_ForwardReference fr = asm.forwardJcc(asm.LGT);                     // Jmp around trap if index is OK        // "pass" index param to C trap handler    VM_ProcessorLocalState.emitMoveRegToField(asm,                                               VM_Entrypoints.arrayIndexTrapParamField.getOffsetAsInt(),                                              indexReg);    asm.emitINT_Imm(VM_Runtime.TRAP_ARRAY_BOUNDS + RVM_TRAP_BASE );       // trap    fr.resolve(asm);  }