Allow X86 QBE to be extended
Enhancements and updates to allow X86Mir2LIR Backend to be subclassed
for experimentation. Add virtual in a whole bunch of places, and make
some other changes to get this to work.
Change-Id: I0980a19bc5d5725f91660f98c95f1f51c17ee9b6
Signed-off-by: Mark Mendell <mark.p.mendell@intel.com>
diff --git a/compiler/dex/quick/mir_to_lir.cc b/compiler/dex/quick/mir_to_lir.cc
index ea8071d..9fc93d0 100644
--- a/compiler/dex/quick/mir_to_lir.cc
+++ b/compiler/dex/quick/mir_to_lir.cc
@@ -425,21 +425,11 @@
case Instruction::CONST:
case Instruction::CONST_4:
case Instruction::CONST_16:
- rl_result = EvalLoc(rl_dest, kAnyReg, true);
- LoadConstantNoClobber(rl_result.reg, vB);
- StoreValue(rl_dest, rl_result);
- if (vB == 0) {
- Workaround7250540(rl_dest, rl_result.reg);
- }
+ GenConst(rl_dest, vB);
break;
case Instruction::CONST_HIGH16:
- rl_result = EvalLoc(rl_dest, kAnyReg, true);
- LoadConstantNoClobber(rl_result.reg, vB << 16);
- StoreValue(rl_dest, rl_result);
- if (vB == 0) {
- Workaround7250540(rl_dest, rl_result.reg);
- }
+ GenConst(rl_dest, vB << 16);
break;
case Instruction::CONST_WIDE_16: