Add support for static fields in optimizing compiler.

Change-Id: Id2f010589e2bd6faf42c05bb33abf6816ebe9fa9
diff --git a/compiler/optimizing/locations.h b/compiler/optimizing/locations.h
index de8c78d..94aded6 100644
--- a/compiler/optimizing/locations.h
+++ b/compiler/optimizing/locations.h
@@ -360,6 +360,15 @@
     }
   }
 
+  void Remove(Location loc) {
+    if (loc.IsRegister()) {
+      core_registers_ &= ~(1 << loc.reg());
+    } else {
+      DCHECK(loc.IsFpuRegister());
+      floating_point_registers_ &= ~(1 << loc.reg());
+    }
+  }
+
   bool ContainsCoreRegister(uint32_t id) {
     return Contains(core_registers_, id);
   }