Cleanup baseline register allocator.
- Use three arrays for blocking regsters instead of
one and computing offsets in that array.]
- Don't pass blocked_registers_ to methods, just use the field.
Change-Id: Ib698564c31127c59b5a64c80f4262394b8394dc6
diff --git a/compiler/optimizing/code_generator_x86_64.h b/compiler/optimizing/code_generator_x86_64.h
index cba3a54..288f3f6 100644
--- a/compiler/optimizing/code_generator_x86_64.h
+++ b/compiler/optimizing/code_generator_x86_64.h
@@ -173,21 +173,8 @@
virtual Location GetStackLocation(HLoadLocal* load) const OVERRIDE;
- virtual size_t GetNumberOfRegisters() const OVERRIDE {
- return kNumberOfRegIds;
- }
-
- virtual size_t GetNumberOfCoreRegisters() const OVERRIDE {
- return kNumberOfCpuRegisters;
- }
-
- virtual size_t GetNumberOfFloatingPointRegisters() const OVERRIDE {
- return kNumberOfFloatRegisters;
- }
-
- virtual void SetupBlockedRegisters(bool* blocked_registers) const OVERRIDE;
- virtual Location AllocateFreeRegister(
- Primitive::Type type, bool* blocked_registers) const OVERRIDE;
+ virtual void SetupBlockedRegisters() const OVERRIDE;
+ virtual Location AllocateFreeRegister(Primitive::Type type) const OVERRIDE;
virtual void DumpCoreRegister(std::ostream& stream, int reg) const OVERRIDE;
virtual void DumpFloatingPointRegister(std::ostream& stream, int reg) const OVERRIDE;