| 102 | } |
| 103 | |
| 104 | int Activation::ClearCachedValues() { |
| 105 | int n = 0; |
| 106 | for (auto& entry : value_map_) { |
| 107 | if (entry.second.HasProducer()) { |
| 108 | if (entry.second.ClearValue()) { |
| 109 | n++; |
| 110 | } |
| 111 | } |
| 112 | } |
| 113 | return n; |
| 114 | } |
| 115 | |
| 116 | } // namespace runtime |
| 117 | } // namespace expr |