summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Scott <phanna@android.com>2009-06-30 13:39:54 -0400
committerPatrick Scott <phanna@android.com>2009-06-30 13:40:43 -0400
commit40f0a966ecdad09ba8565aa2c1970ac4b72452c7 (patch)
tree2aec5db573aa0143a3e924e5b7b6484e52df8085
parentdac9d5be4c497a51b6e083bc9b232977d8e195c1 (diff)
downloadwebkit-40f0a966ecdad09ba8565aa2c1970ac4b72452c7.tar.gz
Do not merge
Fix the alignment bug in donut. Only check for ARM since SH4 is in the newer webkit.
-rw-r--r--WebCore/platform/text/StringHash.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/WebCore/platform/text/StringHash.h b/WebCore/platform/text/StringHash.h
index 336dce30f..4ab53ad1a 100644
--- a/WebCore/platform/text/StringHash.h
+++ b/WebCore/platform/text/StringHash.h
@@ -47,6 +47,9 @@ namespace WebCore {
if (aLength != bLength)
return false;
+#if PLATFORM(ARM)
+ return memcmp(a->characters(), b->characters(), aLength) == 0;
+#else
const uint32_t* aChars = reinterpret_cast<const uint32_t*>(a->characters());
const uint32_t* bChars = reinterpret_cast<const uint32_t*>(b->characters());
@@ -59,6 +62,7 @@ namespace WebCore {
return false;
return true;
+#endif
}
static unsigned hash(const RefPtr<StringImpl>& key) { return key->hash(); }