Skip to content
Snippets Groups Projects
Commit f862e260 authored by whh8b's avatar whh8b
Browse files

Track fallback dollops.

parent b64b6b98
No related branches found
No related tags found
No related merge requests found
......@@ -92,6 +92,7 @@ class Dollop_t : public Placeable_t, public std::list<DollopEntry_t*> {
Dollop_t() :
m_size(0),
m_fallthrough_dollop(NULL),
m_fallback_dollop(NULL),
m_fallthrough_patched(false),
m_coalesced(false),
m_was_truncated(false) {}
......@@ -113,6 +114,11 @@ class Dollop_t : public Placeable_t, public std::list<DollopEntry_t*> {
friend std::ostream &operator<<(std::ostream &, const Dollop_t &);
void FallbackDollop(Dollop_t *fallback) {
m_fallback_dollop = fallback;
}
Dollop_t *FallbackDollop(void) const { return m_fallback_dollop; }
void FallthroughDollop(Dollop_t *fallthrough) {
m_fallthrough_dollop = fallthrough;
}
......@@ -131,7 +137,7 @@ class Dollop_t : public Placeable_t, public std::list<DollopEntry_t*> {
private:
size_t CalculateWorstCaseSize();
size_t m_size;
Dollop_t *m_fallthrough_dollop;
Dollop_t *m_fallthrough_dollop, *m_fallback_dollop;
bool m_fallthrough_patched;
bool m_coalesced;
bool m_was_truncated;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment