| 103 | } |
| 104 | |
| 105 | void CodeCache::sort() { |
| 106 | if (_count == 0) return; |
| 107 | |
| 108 | qsort(_blobs, _count, sizeof(CodeBlob), CodeBlob::comparator); |
| 109 | |
| 110 | if (_min_address == NO_MIN_ADDRESS) _min_address = _blobs[0]._start; |
| 111 | if (_max_address == NO_MAX_ADDRESS) _max_address = _blobs[_count - 1]._end; |
| 112 | } |
| 113 | |
| 114 | CodeBlob* CodeCache::findBlob(const char* name) { |
| 115 | for (int i = 0; i < _count; i++) { |
no outgoing calls
no test coverage detected