| 496 | } |
| 497 | |
| 498 | RYWMutation WriteMap::coalesceUnder(OperationStack const& stack, Optional<ValueRef> const& value, Arena& arena) { |
| 499 | if (!stack.isDependent() && stack.size() == 1) |
| 500 | return stack.at(0); |
| 501 | |
| 502 | RYWMutation currentEntry = RYWMutation(value, MutationRef::SetValue); |
| 503 | for (int i = 0; i < stack.size(); ++i) { |
| 504 | currentEntry = coalesce(currentEntry, stack.at(i), arena); |
| 505 | } |
| 506 | |
| 507 | return currentEntry; |
| 508 | } |
| 509 | |
| 510 | void WriteMap::dump() { |
| 511 | iterator it(this); |
nothing calls this directly
no test coverage detected