| 24 | |
| 25 | |
| 26 | void* HeapValue::operator new(size_t size, size_t valueSize) { |
| 27 | #ifdef __GNUC__ |
| 28 | #pragma GCC diagnostic push |
| 29 | #pragma GCC diagnostic ignored "-Winvalid-offsetof" |
| 30 | #endif |
| 31 | static_assert(offsetof(HeapValue, _header) & 1, "_header must be at odd address"); |
| 32 | #ifdef __GNUC__ |
| 33 | #pragma GCC diagnostic pop |
| 34 | #endif |
| 35 | return ::operator new(size + valueSize); |
| 36 | } |
| 37 | |
| 38 | |
| 39 | HeapValue::HeapValue(tags tag, int tiny) { |
nothing calls this directly
no outgoing calls
no test coverage detected