| 2993 | } |
| 2994 | |
| 2995 | void Value::swapPayload(Value& other) { |
| 2996 | ValueType temp = type_; |
| 2997 | type_ = other.type_; |
| 2998 | other.type_ = temp; |
| 2999 | std::swap(value_, other.value_); |
| 3000 | int temp2 = allocated_; |
| 3001 | allocated_ = other.allocated_; |
| 3002 | other.allocated_ = temp2 & 0x1; |
| 3003 | } |
| 3004 | |
| 3005 | void Value::copyPayload(const Value& other) { |
| 3006 | type_ = other.type_; |
no test coverage detected