Changeset 208367 in webkit for trunk/Source/JavaScriptCore/dfg/DFGNode.h
- Timestamp:
- Nov 3, 2016, 9:38:58 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGNode.h
r208364 r208367 2561 2561 }; 2562 2562 2563 struct NodeComparator { 2564 template<typename NodePtrType> 2565 bool operator()(NodePtrType a, NodePtrType b) const 2566 { 2567 return a->index() < b->index(); 2568 } 2569 }; 2563 inline bool nodeComparator(Node* a, Node* b) 2564 { 2565 return a->index() < b->index(); 2566 } 2570 2567 2571 2568 template<typename T> 2572 2569 CString nodeListDump(const T& nodeList) 2573 2570 { 2574 return sortedListDump(nodeList, NodeComparator());2571 return sortedListDump(nodeList, nodeComparator); 2575 2572 } 2576 2573 … … 2583 2580 iter != nodeMap.end(); ++iter) 2584 2581 keys.append(iter->key); 2585 std::sort(keys.begin(), keys.end(), NodeComparator());2582 std::sort(keys.begin(), keys.end(), nodeComparator); 2586 2583 StringPrintStream out; 2587 2584 CommaPrinter comma; … … 2597 2594 T sortedList = nodeValuePairList; 2598 2595 std::sort(sortedList.begin(), sortedList.end(), [](const V& a, const V& b) { 2599 return NodeComparator()(a.node, b.node);2596 return nodeComparator(a.node, b.node); 2600 2597 }); 2601 2598
Note:
See TracChangeset
for help on using the changeset viewer.