summaryrefslogtreecommitdiffstats
path: root/compiler/dex/quick/ralloc_util.cc
diff options
context:
space:
mode:
authorDouglas Leung <douglas@mips.com>2014-06-25 16:02:55 -0700
committerbuzbee <buzbee@google.com>2014-06-27 10:44:27 -0700
commit2db3e269e3051dacb3c8a4af8f03fdad9b0fd740 (patch)
tree9653675093f7c7af9f56ce133acb1476ddf42a5d /compiler/dex/quick/ralloc_util.cc
parenta64d728836712e9295ada7de44d8cc3165d595a8 (diff)
downloadandroid_art-2db3e269e3051dacb3c8a4af8f03fdad9b0fd740.tar.gz
android_art-2db3e269e3051dacb3c8a4af8f03fdad9b0fd740.tar.bz2
android_art-2db3e269e3051dacb3c8a4af8f03fdad9b0fd740.zip
Fix quick mode bugs for Mips.
This patch enable quick mode for Mips and allows the emulator to boot. However the emulator is still not 100% functional. It still have problems launching some apps. Change-Id: Id46a39a649a2fd431a9f13b06ecf34cbd1d20930 Signed-off-by: Douglas Leung <douglas@mips.com>
Diffstat (limited to 'compiler/dex/quick/ralloc_util.cc')
-rw-r--r--compiler/dex/quick/ralloc_util.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/dex/quick/ralloc_util.cc b/compiler/dex/quick/ralloc_util.cc
index 60eebe4a25..81dabd448e 100644
--- a/compiler/dex/quick/ralloc_util.cc
+++ b/compiler/dex/quick/ralloc_util.cc
@@ -359,7 +359,13 @@ RegStorage Mir2Lir::AllocTempBody(GrowableArray<RegisterInfo*> &regs, int* next_
* NOTE: "wideness" is an attribute of how the container is used, not its physical size.
* The caller will set wideness as appropriate.
*/
- info->SetIsWide(false);
+ if (info->IsWide()) {
+ RegisterInfo* partner = GetRegInfo(info->Partner());
+ DCHECK_EQ(info->GetReg().GetRegNum(), partner->Partner().GetRegNum());
+ DCHECK(partner->IsWide());
+ info->SetIsWide(false);
+ partner->SetIsWide(false);
+ }
*next_temp = next + 1;
return info->GetReg();
}