refactor: retire GCObject.shallow_copy()
Collector gets this info from gc-owned object header
This commit is contained in:
parent
423bd045d2
commit
327807331d
2 changed files with 3 additions and 11 deletions
|
|
@ -88,13 +88,11 @@ namespace xo {
|
||||||
/** @defgroup duniquestring-gcobject-methods gcobject facet methods **/
|
/** @defgroup duniquestring-gcobject-methods gcobject facet methods **/
|
||||||
///@{
|
///@{
|
||||||
|
|
||||||
std::size_t shallow_size() const noexcept;
|
|
||||||
|
|
||||||
/** clone unique string, using memory from allocator @p mm. **/
|
/** clone unique string, using memory from allocator @p mm. **/
|
||||||
DUniqueString * shallow_move(obj<ACollector> gc) noexcept;
|
DUniqueString * shallow_move(obj<ACollector> gc) noexcept;
|
||||||
|
|
||||||
/** fixup child pointers (trivial for DUniqueString, no gc-owned children **/
|
/** fixup child pointers (trivial for DUniqueString, no gc-owned children **/
|
||||||
std::size_t forward_children(obj<ACollector> gc) noexcept;
|
void forward_children(obj<ACollector> gc) noexcept;
|
||||||
|
|
||||||
///@}
|
///@}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -81,12 +81,6 @@ namespace xo {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t
|
|
||||||
DUniqueString::shallow_size() const noexcept
|
|
||||||
{
|
|
||||||
return sizeof(DUniqueString);
|
|
||||||
}
|
|
||||||
|
|
||||||
DUniqueString *
|
DUniqueString *
|
||||||
DUniqueString::shallow_move(obj<ACollector> gc) noexcept
|
DUniqueString::shallow_move(obj<ACollector> gc) noexcept
|
||||||
{
|
{
|
||||||
|
|
@ -114,10 +108,10 @@ namespace xo {
|
||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t
|
void
|
||||||
DUniqueString::forward_children(obj<ACollector>) noexcept
|
DUniqueString::forward_children(obj<ACollector>) noexcept
|
||||||
{
|
{
|
||||||
return shallow_size();
|
// no-op
|
||||||
}
|
}
|
||||||
} /*namespace scm*/
|
} /*namespace scm*/
|
||||||
} /*namespace xo*/
|
} /*namespace xo*/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue