Changeset 36048 in webkit
- Timestamp:
- Sep 2, 2008 11:28:44 PM (16 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r36045 r36048 1 2008-09-02 Csaba Osztrogonac <oszi@inf.u-szeged.hu> 2 3 Reviewed by Darin Adler. 4 5 Bug 20296: OpcodeStats doesn't build on platforms which don't have mergesort(). 6 <https://bugs.webkit.org/show_bug.cgi?id=20296> 7 8 * VM/Opcode.cpp: 9 (KJS::OpcodeStats::~OpcodeStats): mergesort() replaced with qsort() 10 1 11 2008-09-02 Geoffrey Garen <ggaren@apple.com> 2 12 -
trunk/JavaScriptCore/VM/Opcode.cpp
r35454 r36048 105 105 for (int i = 0; i < numOpcodeIDs; ++i) 106 106 sortedIndices[i] = i; 107 mergesort(sortedIndices, numOpcodeIDs, sizeof(int), compareOpcodeIndices);107 qsort(sortedIndices, numOpcodeIDs, sizeof(int), compareOpcodeIndices); 108 108 109 109 pair<int, int> sortedPairIndices[numOpcodeIDs * numOpcodeIDs]; … … 112 112 for (int j = 0; j < numOpcodeIDs; ++j) 113 113 *(currentPairIndex++) = make_pair(i, j); 114 mergesort(sortedPairIndices, numOpcodeIDs * numOpcodeIDs, sizeof(pair<int, int>), compareOpcodePairIndices);114 qsort(sortedPairIndices, numOpcodeIDs * numOpcodeIDs, sizeof(pair<int, int>), compareOpcodePairIndices); 115 115 116 116 printf("\nExecuted opcode statistics\n");
Note: See TracChangeset
for help on using the changeset viewer.