| 151 | } |
| 152 | |
| 153 | void StructInstance::add_associated_memory(JSObject* obj) { |
| 154 | if (gtype() == G_TYPE_BYTES && m_ptr) { |
| 155 | size_t size = g_bytes_get_size(m_ptr.as<GBytes>()); |
| 156 | JS::AddAssociatedMemory(obj, size, MemoryUse::GObjectInstanceStruct); |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | void StructInstance::remove_associated_memory(JSObject* obj) { |
| 161 | if (gtype() == G_TYPE_BYTES && m_ptr) { |
no outgoing calls
no test coverage detected