| 2915 | } |
| 2916 | |
| 2917 | void Value::swapPayload(Value& other) { |
| 2918 | ValueType temp = type_; |
| 2919 | type_ = other.type_; |
| 2920 | other.type_ = temp; |
| 2921 | std::swap(value_, other.value_); |
| 2922 | int temp2 = allocated_; |
| 2923 | allocated_ = other.allocated_; |
| 2924 | other.allocated_ = temp2 & 0x1; |
| 2925 | } |
| 2926 | |
| 2927 | void Value::swap(Value& other) { |
| 2928 | swapPayload(other); |
no test coverage detected