예제 #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
예제 #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
예제 #3
0
 def initialize(self):
     self.gcrefs = GcRefList()
     self.gcrefs.initialize()
     self.single_gcref_descr = GcPtrFieldDescr(0)
예제 #4
0
 def initialize(self):
     self.gcrefs = GcRefList()
     self.gcrefs.initialize()
     self.single_gcref_descr = GcPtrFieldDescr(0)