Convert a DCHECK to a COMPILE_ASSERT

Change-Id: I3719ef5ad7339bba4b21bbb96b2e4f0554846d4a
diff --git a/src/java_lang_System.cc b/src/java_lang_System.cc
index 4eaaa66..8aeefcd 100644
--- a/src/java_lang_System.cc
+++ b/src/java_lang_System.cc
@@ -185,7 +185,7 @@
   const size_t width = sizeof(Object*);
   if (dstComponentType->IsAssignableFrom(srcComponentType)) {
     // Yes. Bulk copy.
-    DCHECK_EQ(width, sizeof(uint32_t));
+    COMPILE_ASSERT(sizeof(width) == sizeof(uint32_t), move32_assumes_Object_references_are_32_bit);
     move32(dstBytes + dstPos * width, srcBytes + srcPos * width, length * width);
     Heap::WriteBarrier(dstArray);
     return;