summaryrefslogtreecommitdiffstats
path: root/compiler/dex/quick/arm64/int_arm64.cc
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2014-11-08 11:21:21 -0800
committerIan Rogers <irogers@google.com>2014-11-08 11:31:25 -0800
commitb28c1c06236751aa5c9e64dcb68b3c940341e496 (patch)
treea0ccd1b1ff4f464d18b4854dbbb369f831564620 /compiler/dex/quick/arm64/int_arm64.cc
parent78aa45b87cd889c6ec542fe08edad1db0d42d1f0 (diff)
downloadandroid_art-b28c1c06236751aa5c9e64dcb68b3c940341e496.tar.gz
android_art-b28c1c06236751aa5c9e64dcb68b3c940341e496.tar.bz2
android_art-b28c1c06236751aa5c9e64dcb68b3c940341e496.zip
Tidy RegStorage for X86.
Don't use global variables initialized in constructors to hold onto constant values, instead use the TargetReg32 helper. Improve this helper with the use of lookup tables. Elsewhere prefer to use constexpr values as they will have less runtime cost. Add an ostream operator to RegStorage for CHECK_EQ and use. Change-Id: Ib8d092d46c10dac5909ecdff3cc1e18b7e9b1633
Diffstat (limited to 'compiler/dex/quick/arm64/int_arm64.cc')
-rw-r--r--compiler/dex/quick/arm64/int_arm64.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/dex/quick/arm64/int_arm64.cc b/compiler/dex/quick/arm64/int_arm64.cc
index fc72e02c55..e57f99ce9b 100644
--- a/compiler/dex/quick/arm64/int_arm64.cc
+++ b/compiler/dex/quick/arm64/int_arm64.cc
@@ -1663,7 +1663,7 @@ static void UnSpillFPRegs(Arm64Mir2Lir* m2l, RegStorage base, int offset, uint32
void Arm64Mir2Lir::UnspillRegs(RegStorage base, uint32_t core_reg_mask, uint32_t fp_reg_mask,
int frame_size) {
- DCHECK(base == rs_sp);
+ DCHECK_EQ(base, rs_sp);
// Restore saves and drop stack frame.
// 2 versions:
//