Refactor the type inference for this pointer of virtual call
Refactor the type inference for this pointer of virtual call

Summary:
There are some common code for inferring DexType of a register in every updating method for updating virtual calls for enums.
like for `invoke-virtual v0, Candidate.name()` and `invoke-virtual v0, Candidate.method()`

Refactor out the code

Reviewed By: int3

Differential Revision: D17734092

fbshipit-source-id: 5e8cacbd9ac2d2ef03e9650330347cde1482fafc

facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex,facebook/redex