Esempio n. 1
0
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
Esempio n. 2
0
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
Esempio n. 3
0
 def initialize(self):
     self.gcrefs = GcRefList()
     self.gcrefs.initialize()
     self.single_gcref_descr = GcPtrFieldDescr(0)
Esempio n. 4
0
 def initialize(self):
     self.gcrefs = GcRefList()
     self.gcrefs.initialize()
     self.single_gcref_descr = GcPtrFieldDescr(0)