Bug 1033959: Fix typo that regressed octane-regexp osx performance, r=nbp
authorHannes Verschore <hv1989@gmail.com>
Fri, 04 Jul 2014 14:29:51 +0200
changeset 206207 54a623fe67682cd5e2c6112ef623b5bff2694e6b
parent 206206 4ed7bd8ab1f3b7a3584c800ed2daf6bf1fb8c186
child 206208 9543f68db4653d0e9c97fd8e727d42d43356eeae
push idunknown
push userunknown
push dateunknown
reviewersnbp
bugs1033959
milestone33.0a1
Bug 1033959: Fix typo that regressed octane-regexp osx performance, r=nbp
js/src/jsstr.cpp
--- a/js/src/jsstr.cpp
+++ b/js/src/jsstr.cpp
@@ -1164,17 +1164,17 @@ FirstCharMatcher8bit(const char *text, u
 #else
     return reinterpret_cast<const char *>(memchr(text, pat, n));
 #endif
 }
 
 static const jschar *
 FirstCharMatcher16bit(const jschar *text, uint32_t n, const jschar pat)
 {
-#if defined(XP_DARWIN) || defined(XP_WIN)
+#if defined(XP_MACOSX) || defined(XP_WIN)
     /*
      * Performance of memchr is horrible in OSX. Windows is better,
      * but it is still better to use UnrolledMatcher.
      */
     return FirstCharMatcherUnrolled<jschar, jschar>(text, n, pat);
 #else
     /*
      * For linux the best performance is obtained by slightly hacking memchr.