B3/Air should use bubble sort for their insertion sets, because it's faster than...
[WebKit-https.git] / Source / JavaScriptCore / b3 / B3InsertionSet.cpp
index 08bf062a89b7f1910da0c7547a7cd150a3645f98..51f82f99ce2fcdfa468821c8cdc116f81476a61f 100644 (file)
 #if ENABLE(B3_JIT)
 
 #include "B3BasicBlock.h"
+#include <wtf/BubbleSort.h>
 
 namespace JSC { namespace B3 {
 
 void InsertionSet::execute(BasicBlock* block)
 {
-    std::stable_sort(m_insertions.begin(), m_insertions.end());
+    bubbleSort(m_insertions.begin(), m_insertions.end());
     executeInsertions(block->m_values, m_insertions);
 }