| 143 | } |
| 144 | |
| 145 | ValueRef ValueWeakRef::lock() { |
| 146 | auto strong_storage = m_storage.lock(); |
| 147 | if ((!strong_storage) || strong_storage->m_successor) { |
| 148 | return {}; |
| 149 | } |
| 150 | return {strong_storage}; |
| 151 | } |
| 152 | |
| 153 | Value::Value() { |
| 154 | m_id = nr_values++; |
no outgoing calls