From 56b9ee6fe1d6880c5fca0e7feb28b25a1ded2e2f Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 9 Oct 2014 11:47:51 +0100 Subject: Stop converting from Location to ManagedRegister. Now the source of truth is the Location object that knows which register (core, pair, fpu) it needs to refer to. Change-Id: I62401343d7479ecfb24b5ed161ec7829cda5a0b1 --- compiler/optimizing/code_generator.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/code_generator.h') diff --git a/compiler/optimizing/code_generator.h b/compiler/optimizing/code_generator.h index c7623fe895..74ad8e93f3 100644 --- a/compiler/optimizing/code_generator.h +++ b/compiler/optimizing/code_generator.h @@ -168,8 +168,8 @@ class CodeGenerator : public ArenaObject { void AllocateRegistersLocally(HInstruction* instruction) const; // Backend specific implementation for allocating a register. - virtual ManagedRegister AllocateFreeRegister(Primitive::Type type, - bool* blocked_registers) const = 0; + virtual Location AllocateFreeRegister(Primitive::Type type, + bool* blocked_registers) const = 0; // Raw implementation of allocating a register: loops over blocked_registers to find // the first available register. -- cgit v1.2.3-59-g8ed1b