summaryrefslogtreecommitdiffstats
path: root/compiler/dex/quick/ralloc_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/dex/quick/ralloc_util.cc')
-rw-r--r--compiler/dex/quick/ralloc_util.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/compiler/dex/quick/ralloc_util.cc b/compiler/dex/quick/ralloc_util.cc
index 8ec86fa..e0ed90d 100644
--- a/compiler/dex/quick/ralloc_util.cc
+++ b/compiler/dex/quick/ralloc_util.cc
@@ -928,6 +928,24 @@ void Mir2Lir::MarkInUse(RegStorage reg) {
}
}
+void Mir2Lir::MarkFree(RegStorage reg) {
+ if (reg.IsPair()) {
+ GetRegInfo(reg.GetLow())->MarkFree();
+ GetRegInfo(reg.GetHigh())->MarkFree();
+ } else {
+ GetRegInfo(reg)->MarkFree();
+ }
+}
+
+void Mir2Lir::MarkDead(RegStorage reg) {
+ if (reg.IsPair()) {
+ GetRegInfo(reg.GetLow())->MarkDead();
+ GetRegInfo(reg.GetHigh())->MarkDead();
+ } else {
+ GetRegInfo(reg)->MarkDead();
+ }
+}
+
bool Mir2Lir::CheckCorePoolSanity() {
for (RegisterInfo* info : tempreg_info_) {
int my_sreg = info->SReg();