| 2936 | } |
| 2937 | |
| 2938 | void Value::swapPayload(Value& other) { |
| 2939 | ValueType temp = type_; |
| 2940 | type_ = other.type_; |
| 2941 | other.type_ = temp; |
| 2942 | std::swap(value_, other.value_); |
| 2943 | int temp2 = allocated_; |
| 2944 | allocated_ = other.allocated_; |
| 2945 | other.allocated_ = temp2 & 0x1; |
| 2946 | } |
| 2947 | |
| 2948 | void Value::copyPayload(const Value& other) { |
| 2949 | releasePayload(); |
no test coverage detected