summaryrefslogtreecommitdiff
path: root/compiler/optimizing/code_generator.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2014-10-09 11:47:51 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2014-10-09 14:42:13 +0100
commit56b9ee6fe1d6880c5fca0e7feb28b25a1ded2e2f (patch)
tree34e5163967f59a98e64f2c89489ed7b76334b48a /compiler/optimizing/code_generator.h
parenta3c4d72210de174552f47b2d117b1946f274af1e (diff)
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
Diffstat (limited to 'compiler/optimizing/code_generator.h')
-rw-r--r--compiler/optimizing/code_generator.h4
1 files changed, 2 insertions, 2 deletions
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.