| 498 | } |
| 499 | |
| 500 | void Value::swapPayload(Value& other) { |
| 501 | ValueType temp = type_; |
| 502 | type_ = other.type_; |
| 503 | other.type_ = temp; |
| 504 | std::swap(value_, other.value_); |
| 505 | int temp2 = allocated_; |
| 506 | allocated_ = other.allocated_; |
| 507 | other.allocated_ = temp2 & 0x1; |
| 508 | } |
| 509 | |
| 510 | void Value::copyPayload(const Value& other) { |
| 511 | releasePayload(); |
no test coverage detected