| 2961 | } |
| 2962 | |
| 2963 | void Value::swapPayload(Value& other) { |
| 2964 | ValueType temp = type_; |
| 2965 | type_ = other.type_; |
| 2966 | other.type_ = temp; |
| 2967 | std::swap(value_, other.value_); |
| 2968 | int temp2 = allocated_; |
| 2969 | allocated_ = other.allocated_; |
| 2970 | other.allocated_ = temp2 & 0x1; |
| 2971 | } |
| 2972 | |
| 2973 | void Value::swap(Value& other) { |
| 2974 | swapPayload(other); |
no test coverage detected