From 58320ce35715f2814700707a9d35ad5055fff9ce Mon Sep 17 00:00:00 2001 From: Alexey Frunze Date: Tue, 30 Aug 2016 21:40:46 -0700 Subject: MIPS32: Ensure preservation of RA in leaf methods if it's clobbered Test: booted MIPS32 in QEMU Test: test-art-host-gtest Test: test-art-target-gtest-codegen_test in QEMU Test: test-art-target-run-test-optimizing on CI20 Change-Id: Ia3da5902d967cd7af313f03ebf414320b0063619 --- compiler/optimizing/code_generator.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing/code_generator.h') diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index fd396c474c..5c5c451e43 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -601,7 +601,7 @@ class CodeGenerator : public DeletableArenaObject { return POPCOUNT(core_spill_mask_) * GetWordSize(); } - bool HasAllocatedCalleeSaveRegisters() const { + virtual bool HasAllocatedCalleeSaveRegisters() const { // We check the core registers against 1 because it always comprises the return PC. return (POPCOUNT(allocated_registers_.GetCoreRegisters() & core_callee_save_mask_) != 1) || (POPCOUNT(allocated_registers_.GetFloatingPointRegisters() & fpu_callee_save_mask_) != 0); -- cgit v1.2.3-59-g8ed1b