Title: [280745] trunk/Source/_javascript_Core
Revision
280745
Author
[email protected]
Date
2021-08-06 17:26:26 -0700 (Fri, 06 Aug 2021)

Log Message

Unreviewed, build fix on Debug build
https://bugs.webkit.org/show_bug.cgi?id=228810

* yarr/YarrJIT.h:
(JSC::Yarr::BoyerMooreBitmap::addCharacters):
(JSC::Yarr::BoyerMooreBitmap::addRanges):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (280744 => 280745)


--- trunk/Source/_javascript_Core/ChangeLog	2021-08-07 00:02:51 UTC (rev 280744)
+++ trunk/Source/_javascript_Core/ChangeLog	2021-08-07 00:26:26 UTC (rev 280745)
@@ -1,5 +1,14 @@
 2021-08-06  Yusuke Suzuki  <[email protected]>
 
+        Unreviewed, build fix on Debug build
+        https://bugs.webkit.org/show_bug.cgi?id=228810
+
+        * yarr/YarrJIT.h:
+        (JSC::Yarr::BoyerMooreBitmap::addCharacters):
+        (JSC::Yarr::BoyerMooreBitmap::addRanges):
+
+2021-08-06  Yusuke Suzuki  <[email protected]>
+
         [JSC] Yarr's character tracking for BoyerMoore search should be more precise
         https://bugs.webkit.org/show_bug.cgi?id=228810
 

Modified: trunk/Source/_javascript_Core/yarr/YarrJIT.h (280744 => 280745)


--- trunk/Source/_javascript_Core/yarr/YarrJIT.h	2021-08-07 00:02:51 UTC (rev 280744)
+++ trunk/Source/_javascript_Core/yarr/YarrJIT.h	2021-08-07 00:26:26 UTC (rev 280745)
@@ -143,7 +143,7 @@
     {
         if (isAllSet())
             return;
-        ASSERT(std::is_sorted(characters));
+        ASSERT(std::is_sorted(characters.begin(), characters.end()));
         for (UChar32 character : characters) {
             // Early return since characters are sorted.
             if (charSize == CharSize::Char8 && character > 0xff)
@@ -157,7 +157,7 @@
     {
         if (isAllSet())
             return;
-        ASSERT(std::is_sorted(characters, [](CharacterRange lhs, CharacterRange rhs) {
+        ASSERT(std::is_sorted(ranges.begin(), ranges.end(), [](CharacterRange lhs, CharacterRange rhs) {
                 return lhs.begin < rhs.begin;
             }));
         for (CharacterRange range : ranges) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to