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