| 335 | } |
| 336 | |
| 337 | void DwarfParser::addRecord(u32 loc, u32 cfa_reg, int cfa_off, int fp_off, int pc_off) { |
| 338 | int cfa = cfa_reg | cfa_off << 8; |
| 339 | if (_prev == NULL || (_prev->loc == loc && --_count >= 0) || |
| 340 | _prev->cfa != cfa || _prev->fp_off != fp_off || _prev->pc_off != pc_off) { |
| 341 | _prev = addRecordRaw(loc, cfa, fp_off, pc_off); |
| 342 | } |
| 343 | } |
| 344 | |
| 345 | FrameDesc* DwarfParser::addRecordRaw(u32 loc, int cfa, int fp_off, int pc_off) { |
| 346 | if (_count >= _capacity) { |
nothing calls this directly
no outgoing calls
no test coverage detected