public static int getStoreReg ( DismantleBytecode dbc , int seen ) { if ( ( seen == Const . ASTORE ) || ( seen == Const . ISTORE ) || ( seen == Const . LSTORE ) || ( seen == Const . FSTORE ) || ( seen == Const . DSTORE ) ) { return dbc . getRegisterOperand ( ) ; } if ( OpcodeUtils . isIStore ( seen ) ) { return seen - Const . ISTORE_0 ; } else if ( OpcodeUtils . isLStore ( seen ) ) { return seen - Const . LSTORE_0 ; } else if ( OpcodeUtils . isFStore ( seen ) ) { return seen - Const . FSTORE_0 ; } else if ( OpcodeUtils . isDStore ( seen ) ) { return seen - Const . DSTORE_0 ; } else if ( OpcodeUtils . isAStore ( seen ) ) { return seen - Const . ASTORE_0 ; } return - 1 ; }
returns the register used in a store operation