Commits

wenzhu man  committed 3953649

add gctransformer level operation

  • Participants
  • Parent commits 0d35326
  • Branches gc-two-end-nursery

Comments (0)

Files changed (1)

File rpython/memory/gctransform/framework.py

                   resultvar=op.result)
         self.pop_roots(hop, livevars)
 
+    def gct_do_malloc_fixedsize(self, hop):
+        op = hop.spaceop
+        [v_typeid, v_size,
+         v_has_finalizer, v_has_light_finalizer, v_contains_weakptr] = op.args
+        livevars = self.push_roots(hop) 
+        hop.genop("direct_call",
+                  [self.malloc_fixedsize_clear_ptr, self.c_const_gc,
+                   v_typeid, v_size,
+                   v_has_finalizer, v_has_light_finalizer,
+                   v_contains_weakptr],
+                  resultvar=op.result)
+        self.pop_roots(hop, livevars)
+        
     def gct_do_malloc_varsize_clear(self, hop):
         # used by the JIT (see rpython.jit.backend.llsupport.gc)
         op = hop.spaceop