From b28c1c06236751aa5c9e64dcb68b3c940341e496 Mon Sep 17 00:00:00 2001 From: Ian Rogers Date: Sat, 8 Nov 2014 11:21:21 -0800 Subject: 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 --- compiler/dex/quick/arm64/int_arm64.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/dex/quick/arm64/int_arm64.cc') 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: // -- cgit v1.2.3