diff options
author | Alexey Frunze <Alexey.Frunze@imgtec.com> | 2016-08-30 21:40:46 -0700 |
---|---|---|
committer | Alexey Frunze <Alexey.Frunze@imgtec.com> | 2016-09-01 16:36:54 -0700 |
commit | 58320ce35715f2814700707a9d35ad5055fff9ce (patch) | |
tree | f691e4d824213ecadb0bf4f858ad63b5a2584467 /compiler/optimizing/code_generator.h | |
parent | 370e6e412bb8361fec0f0788c396621bccfb6e2a (diff) |
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
Diffstat (limited to 'compiler/optimizing/code_generator.h')
-rw-r--r-- | compiler/optimizing/code_generator.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<kArenaAllocCodeGenerator> { 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); |