diff options
| 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 |
| commit | 56b9ee6fe1d6880c5fca0e7feb28b25a1ded2e2f (patch) | |
| tree | 34e5163967f59a98e64f2c89489ed7b76334b48a /compiler/optimizing/locations.cc | |
| parent | a3c4d72210de174552f47b2d117b1946f274af1e (diff) | |
| download | art-56b9ee6fe1d6880c5fca0e7feb28b25a1ded2e2f.tar.gz art-56b9ee6fe1d6880c5fca0e7feb28b25a1ded2e2f.tar.bz2 art-56b9ee6fe1d6880c5fca0e7feb28b25a1ded2e2f.zip | |
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/locations.cc')
| -rw-r--r-- | compiler/optimizing/locations.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/locations.cc b/compiler/optimizing/locations.cc index 7b09241d12..1637484799 100644 --- a/compiler/optimizing/locations.cc +++ b/compiler/optimizing/locations.cc @@ -55,7 +55,7 @@ Location Location::RegisterOrConstant(HInstruction* instruction) { : Location::RequiresRegister(); } -Location Location::ByteRegisterOrConstant(ManagedRegister reg, HInstruction* instruction) { +Location Location::ByteRegisterOrConstant(int reg, HInstruction* instruction) { return instruction->IsConstant() ? Location::ConstantLocation(instruction->AsConstant()) : Location::RegisterLocation(reg); |
