Changeset 66205 in webkit


Ignore:
Timestamp:
Aug 27, 2010 5:00:21 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-08-27 Chao-ying Fu <fu@mips.com>

Reviewed by Oliver Hunt.

Byte alignment issue on MIPS
https://bugs.webkit.org/show_bug.cgi?id=29415

MIPS accesses one byte at a time for now to avoid the help from the
kernel to fix unaligned accesses.

  • wtf/text/AtomicString.cpp: (WebCore::equal):
  • wtf/text/StringHash.h: (WebCore::StringHash::equal):
Location:
trunk/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r66202 r66205  
     12010-08-27  Chao-ying Fu  <fu@mips.com>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        Byte alignment issue on MIPS
     6        https://bugs.webkit.org/show_bug.cgi?id=29415
     7
     8        MIPS accesses one byte at a time for now to avoid the help from the
     9        kernel to fix unaligned accesses.
     10
     11        * wtf/text/AtomicString.cpp:
     12        (WebCore::equal):
     13        * wtf/text/StringHash.h:
     14        (WebCore::StringHash::equal):
     15
    1162010-08-27  Xan Lopez  <xlopez@igalia.com>
    217
  • trunk/JavaScriptCore/wtf/text/AtomicString.cpp

    r65021 r66205  
    131131    // FIXME: perhaps we should have a more abstract macro that indicates when
    132132    // going 4 bytes at a time is unsafe
    133 #if CPU(ARM) || CPU(SH4)
     133#if CPU(ARM) || CPU(SH4) || CPU(MIPS)
    134134    const UChar* stringCharacters = string->characters();
    135135    for (unsigned i = 0; i != length; ++i) {
  • trunk/JavaScriptCore/wtf/text/StringHash.h

    r65021 r66205  
    5656            // FIXME: perhaps we should have a more abstract macro that indicates when
    5757            // going 4 bytes at a time is unsafe
    58 #if CPU(ARM) || CPU(SH4)
     58#if CPU(ARM) || CPU(SH4) || CPU(MIPS)
    5959            const UChar* aChars = a->characters();
    6060            const UChar* bChars = b->characters();
Note: See TracChangeset for help on using the changeset viewer.