diff options
author | Wei Wang <wangw@codeaurora.org> | 2015-07-21 12:18:48 -0700 |
---|---|---|
committer | Linux Build Service Account <lnxbuild@localhost> | 2015-10-06 03:20:36 -0600 |
commit | 048801b194a1664f1fc1dd55338f44e92c283138 (patch) | |
tree | cc010c5edd8d359acbb40ebf4a5b8c843868a5ae /compiler/dex/quick/ralloc_util.cc | |
parent | 22983bd723dcc57e62bbc21d052e11ff8d1d218f (diff) | |
download | art-048801b194a1664f1fc1dd55338f44e92c283138.tar.gz art-048801b194a1664f1fc1dd55338f44e92c283138.tar.bz2 art-048801b194a1664f1fc1dd55338f44e92c283138.zip |
ART: extension
1. add hooks for further extension
2. minor code change
Change-Id: I2615013b899f5f9b3495546e6001863fb054861a
Diffstat (limited to 'compiler/dex/quick/ralloc_util.cc')
-rw-r--r-- | compiler/dex/quick/ralloc_util.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/compiler/dex/quick/ralloc_util.cc b/compiler/dex/quick/ralloc_util.cc index 8ec86fa56c..e0ed90d640 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(); |