Refactor CasField32

Remove excessive copy paste and add arguments to cover different
types of CAS operations.

Test: test-art-host

Change-Id: I3f58a5f84156aa0491b9e5145f3891f16217e05c
diff --git a/runtime/mirror/object.cc b/runtime/mirror/object.cc
index 200bc47..ce845bf 100644
--- a/runtime/mirror/object.cc
+++ b/runtime/mirror/object.cc
@@ -199,7 +199,7 @@
         DCHECK_EQ(hash_word.GetState(), LockWord::kHashCode);
         // Use a strong CAS to prevent spurious failures since these can make the boot image
         // non-deterministic.
-        if (current_this->CasLockWordStrongRelaxed(lw, hash_word)) {
+        if (current_this->CasLockWord(lw, hash_word, CASMode::kStrong, std::memory_order_relaxed)) {
           return hash_word.GetHashCode();
         }
         break;