diff options
author | Patrick Scott <phanna@android.com> | 2009-06-30 13:39:54 -0400 |
---|---|---|
committer | Patrick Scott <phanna@android.com> | 2009-06-30 13:40:43 -0400 |
commit | 40f0a966ecdad09ba8565aa2c1970ac4b72452c7 (patch) | |
tree | 2aec5db573aa0143a3e924e5b7b6484e52df8085 /WebCore | |
parent | dac9d5be4c497a51b6e083bc9b232977d8e195c1 (diff) | |
download | external_webkit-40f0a966ecdad09ba8565aa2c1970ac4b72452c7.zip external_webkit-40f0a966ecdad09ba8565aa2c1970ac4b72452c7.tar.gz external_webkit-40f0a966ecdad09ba8565aa2c1970ac4b72452c7.tar.bz2 |
Do not merge
Fix the alignment bug in donut. Only check for ARM since SH4 is in the newer
webkit.
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/platform/text/StringHash.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/WebCore/platform/text/StringHash.h b/WebCore/platform/text/StringHash.h index 336dce3..4ab53ad 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(); } |