class MockGcDescr(GcCache): def get_funcptr_for_new(self): return 123 get_funcptr_for_newarray = get_funcptr_for_new get_funcptr_for_newstr = get_funcptr_for_new get_funcptr_for_newunicode = get_funcptr_for_new moving_gc = True gcrootmap = MockGcRootMap() def initialize(self): self.gcrefs = GcRefList() self.gcrefs.initialize() self.single_gcref_descr = GcPtrFieldDescr(0) rewrite_assembler = GcLLDescr_framework.rewrite_assembler.im_func
def initialize(self): self.gcrefs = GcRefList() self.gcrefs.initialize() self.single_gcref_descr = GcPtrFieldDescr(0)