public static int getLoadReg ( DismantleBytecode dbc , int seen ) { if ( ( seen == Const . ALOAD ) || ( seen == Const . ILOAD ) || ( seen == Const . LLOAD ) || ( seen == Const . FLOAD ) || ( seen == Const . DLOAD ) ) { return dbc . getRegisterOperand ( ) ; } if ( OpcodeUtils . isILoad ( seen ) ) { return seen - Const . ILOAD_0 ; } else if ( OpcodeUtils . isLLoad ( seen ) ) { return seen - Const . LLOAD_0 ; } else if ( OpcodeUtils . isFLoad ( seen ) ) { return seen - Const . FLOAD_0 ; } else if ( OpcodeUtils . isDLoad ( seen ) ) { return seen - Const . DLOAD_0 ; } else if ( OpcodeUtils . isALoad ( seen ) ) { return seen - Const . ALOAD_0 ; } return - 1 ; }
returns the register used in a load operation