equal
deleted
inserted
replaced
1629 void Method::sort_methods(Array<Method*>* methods, bool idempotent, bool set_idnums) { |
1629 void Method::sort_methods(Array<Method*>* methods, bool idempotent, bool set_idnums) { |
1630 int length = methods->length(); |
1630 int length = methods->length(); |
1631 if (length > 1) { |
1631 if (length > 1) { |
1632 { |
1632 { |
1633 NoSafepointVerifier nsv; |
1633 NoSafepointVerifier nsv; |
1634 QuickSort::sort<Method*>(methods->data(), length, method_comparator, idempotent); |
1634 QuickSort::sort(methods->data(), length, method_comparator, idempotent); |
1635 } |
1635 } |
1636 // Reset method ordering |
1636 // Reset method ordering |
1637 if (set_idnums) { |
1637 if (set_idnums) { |
1638 for (int i = 0; i < length; i++) { |
1638 for (int i = 0; i < length; i++) { |
1639 Method* m = methods->at(i); |
1639 Method* m = methods->at(i); |