Bug 712990: add missing big-endian code to Yarr JIT, r=dmandelin

This commit is contained in:
Cameron Kaiser 2011-12-22 19:09:53 -08:00
parent aae44a93b0
commit d87c8b605b

View File

@ -696,10 +696,17 @@ class YarrGenerator : private MacroAssembler {
#endif
if (m_pattern.m_ignoreCase) {
#if WTF_CPU_BIG_ENDIAN
if (isASCIIAlpha(ch))
mask |= 32 << 16;
if (isASCIIAlpha(ch2))
mask |= 32;
#else
if (isASCIIAlpha(ch))
mask |= 32;
if (isASCIIAlpha(ch2))
mask |= 32 << 16;
#endif
}
BaseIndex address(input, index, TimesTwo, (term->inputPosition - m_checked) * sizeof(UChar));