| 5508 | } |
| 5509 | |
| 5510 | void BfHotTypeData::ClearVersionsAfter(int hotIdx) |
| 5511 | { |
| 5512 | while (!mTypeVersions.IsEmpty()) |
| 5513 | { |
| 5514 | auto hotTypeVersion = mTypeVersions.back(); |
| 5515 | if (hotTypeVersion->mDeclHotCompileIdx > hotIdx) |
| 5516 | { |
| 5517 | hotTypeVersion->Deref(); |
| 5518 | mTypeVersions.pop_back(); |
| 5519 | } |
| 5520 | else |
| 5521 | break; |
| 5522 | } |
| 5523 | } |
| 5524 | |
| 5525 | void BfHotDepData::Deref() |
| 5526 | { |
no test coverage detected