| 2616 | } |
| 2617 | |
| 2618 | void Value::swapPayload(Value& other) { |
| 2619 | ValueType temp = type_; |
| 2620 | type_ = other.type_; |
| 2621 | other.type_ = temp; |
| 2622 | std::swap(value_, other.value_); |
| 2623 | int temp2 = allocated_; |
| 2624 | allocated_ = other.allocated_; |
| 2625 | other.allocated_ = temp2 & 0x1; |
| 2626 | } |
| 2627 | |
| 2628 | void Value::swap(Value& other) { |
| 2629 | swapPayload(other); |
no test coverage detected