diff options
author | 2015-03-12 15:05:13 +0000 | |
---|---|---|
committer | 2015-03-13 10:26:47 +0000 | |
commit | 15b9d5274399736ac09705f0507df24fac4f00c1 (patch) | |
tree | 04564a9265f5dccefdd32ea7bdd25adc0267f80b /compiler/dex/quick/ralloc_util.cc | |
parent | 8bc616d09f93523f4bc982cc60c377b00161522a (diff) |
API change in StackVisitor::GetVReg*.
- Remove GetVReg() and SetVReg() that were expecting to always succeed.
- Change Quick-only methods to take a FromQuickCode suffix.
- Change deopt to use dead values when GetVReg does not succeed:
the optimizing compiler will not have a location for uninitialized
Dex registers and potentially dead registers.
Change-Id: Ida05773a97aff8aa69e0caf42ea961f80f854b77
Diffstat (limited to 'compiler/dex/quick/ralloc_util.cc')
-rw-r--r-- | compiler/dex/quick/ralloc_util.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/dex/quick/ralloc_util.cc b/compiler/dex/quick/ralloc_util.cc index 682fa281ac..741657bc69 100644 --- a/compiler/dex/quick/ralloc_util.cc +++ b/compiler/dex/quick/ralloc_util.cc @@ -1322,9 +1322,9 @@ void Mir2Lir::DoPromotion() { /* Returns sp-relative offset in bytes for a VReg */ int Mir2Lir::VRegOffset(int v_reg) { const DexFile::CodeItem* code_item = mir_graph_->GetCurrentDexCompilationUnit()->GetCodeItem(); - return StackVisitor::GetVRegOffset(code_item, core_spill_mask_, - fp_spill_mask_, frame_size_, v_reg, - cu_->instruction_set); + return StackVisitor::GetVRegOffsetFromQuickCode(code_item, core_spill_mask_, + fp_spill_mask_, frame_size_, v_reg, + cu_->instruction_set); } /* Returns sp-relative offset in bytes for a SReg */ |