Chromium Code Reviews| Index: runtime/vm/locations.h |
| diff --git a/runtime/vm/locations.h b/runtime/vm/locations.h |
| index 24bf0a036dcb6dc65daaa2c5b56427e4d0dac8ce..8e34046ad92e15052aa8f23a5e72962bc2e55484 100644 |
| --- a/runtime/vm/locations.h |
| +++ b/runtime/vm/locations.h |
| @@ -368,15 +368,10 @@ class RegisterSet : public ValueObject { |
| return (fpu_registers_ & (1 << fpu_reg)) != 0; |
| } |
| - intptr_t fpu_regs_count() const { |
| - intptr_t count = 0; |
| - for (intptr_t reg_idx = 0; reg_idx < kNumberOfFpuRegisters; reg_idx++) { |
| - if (ContainsFpuRegister(static_cast<FpuRegister>(reg_idx))) { |
| - count++; |
| - } |
| - } |
| - return count; |
| - } |
| + intptr_t CpuRegisterCount() const { return RegisterCount(cpu_registers_); } |
|
Florian Schneider
2013/10/17 14:38:52
I don't see that function used anywhere. Do you an
|
| + intptr_t FpuRegisterCount() const { return RegisterCount(fpu_registers_); } |
| + |
| + static intptr_t RegisterCount(intptr_t registers); |
| intptr_t cpu_registers() const { return cpu_registers_; } |
| intptr_t fpu_registers() const { return fpu_registers_; } |