xo-interpreter adds + explict mm arg to ctors (retiring Object::mm)
This commit is contained in:
parent
1c97e2aa93
commit
b4c89d8624
7 changed files with 99 additions and 47 deletions
|
|
@ -54,6 +54,8 @@ namespace xo {
|
|||
bool allow_incremental_gc_ = true;
|
||||
/** true to report statistics **/
|
||||
bool stats_flag_ = false;
|
||||
/** true to capture per-type object statistics **/
|
||||
bool object_stats_flag_ = false;
|
||||
/** remember basic gc statistics for this many GC's; separately for incremental + full GCs **/
|
||||
std::size_t stats_history_z_ = 256;
|
||||
/** true to enable debug logging **/
|
||||
|
|
|
|||
|
|
@ -258,8 +258,9 @@ namespace xo {
|
|||
**/
|
||||
class Cpof {
|
||||
public:
|
||||
explicit Cpof(const Object * src) : src_{src} {}
|
||||
explicit Cpof(gc::IAlloc * mm, const Object * src) : mm_{mm}, src_{src} {}
|
||||
|
||||
gc::IAlloc * mm_ = nullptr;
|
||||
const void * src_ = nullptr;
|
||||
};
|
||||
} /*namespace xo*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue