Chromium Code Reviews| Index: src/x64/register-allocator-x64.cc |
| diff --git a/src/x64/register-allocator-x64.cc b/src/x64/register-allocator-x64.cc |
| index 660618b613cf4436169a9700d7f54df21674f944..0dd4abcd8f35c1800f537352a3706da342d672b5 100644 |
| --- a/src/x64/register-allocator-x64.cc |
| +++ b/src/x64/register-allocator-x64.cc |
| @@ -71,4 +71,17 @@ void Result::ToRegister(Register target) { |
| } |
| +// ------------------------------------------------------------------------- |
| +// RegisterAllocator implementation. |
| + |
| +Result RegisterAllocator::AllocateByteRegisterWithoutSpilling() { |
| + // X64 has no distinction between registers that can be used as 8-bit |
| + // and registers that can't. However, if the register is not one of |
| + // AL, CL, DL or BL, the REX.W bit is necessary to trigger 64-bit |
|
William Hesse
2009/06/25 10:46:05
We really don't even need this function anymore.
|
| + // interpretation of 8-bit registers (using SPL, BPL, DIL and SIL |
| + // instead of AH, CH, DH and BH). |
| + return AllocateWithoutSpilling(); |
| +} |
| + |
| + |
| } } // namespace v8::internal |