Title: [199636] trunk/Source/_javascript_Core
Revision
199636
Author
[email protected]
Date
2016-04-16 18:29:55 -0700 (Sat, 16 Apr 2016)

Log Message

JS::DFG::nodeValuePairListDump does not compile with libstdc++ 4.8
https://bugs.webkit.org/show_bug.cgi?id=156670

Patch by Konstantin Tokarev <[email protected]> on 2016-04-16
Reviewed by Darin Adler.

* dfg/DFGNode.h:
(JSC::DFG::nodeValuePairListDump): Modified to use lambda as comparator.

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (199635 => 199636)


--- trunk/Source/_javascript_Core/ChangeLog	2016-04-17 01:26:07 UTC (rev 199635)
+++ trunk/Source/_javascript_Core/ChangeLog	2016-04-17 01:29:55 UTC (rev 199636)
@@ -1,5 +1,15 @@
 2016-04-16  Konstantin Tokarev  <[email protected]>
 
+        JS::DFG::nodeValuePairListDump does not compile with libstdc++ 4.8
+        https://bugs.webkit.org/show_bug.cgi?id=156670
+
+        Reviewed by Darin Adler.
+
+        * dfg/DFGNode.h:
+        (JSC::DFG::nodeValuePairListDump): Modified to use lambda as comparator.
+
+2016-04-16  Konstantin Tokarev  <[email protected]>
+
         [mips] Implemented moveZeroToDouble.
         https://bugs.webkit.org/show_bug.cgi?id=155429
 

Modified: trunk/Source/_javascript_Core/dfg/DFGNode.h (199635 => 199636)


--- trunk/Source/_javascript_Core/dfg/DFGNode.h	2016-04-17 01:26:07 UTC (rev 199635)
+++ trunk/Source/_javascript_Core/dfg/DFGNode.h	2016-04-17 01:29:55 UTC (rev 199636)
@@ -2328,17 +2328,14 @@
     return out.toCString();
 }
 
-template<typename IteratorType>
-inline bool nodeValuePairComparator(IteratorType a, IteratorType b)
-{
-    return nodeComparator(a.node, b.node);
-}
-
 template<typename T>
 CString nodeValuePairListDump(const T& nodeValuePairList, DumpContext* context = 0)
 {
+    using V = typename T::ValueType;
     T sortedList = nodeValuePairList;
-    std::sort(sortedList.begin(), sortedList.end(), nodeValuePairComparator<decltype(*sortedList.begin())>);
+    std::sort(sortedList.begin(), sortedList.end(), [](const V& a, const V& b) {
+        return nodeComparator(a.node, b.node);
+    });
 
     StringPrintStream out;
     CommaPrinter comma;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to