Exemple #1
0
 def alloc_frame_place(self, gv_TYPE, gv_initial_value=None):
     debug_assert(self.rgenop.currently_writing is self,
                  "alloc_frame_place: bad currently_writing")
     if gv_initial_value is None:
         gv_initial_value = self.rgenop.genzeroconst(gv_TYPE)
     gv_initial_value = llimpl.cast(self.b, gv_TYPE.v, gv_initial_value.v)
     v = LLVar(llimpl.genop(self.b, 'same_as', [gv_initial_value],
                            gv_TYPE.v))
     return LLPlace(v, llimpl.get_frame_info(self.b, [v]))
Exemple #2
0
 def alloc_frame_place(self, gv_TYPE, gv_initial_value=None):
     ll_assert(self.rgenop.currently_writing is self,
               "alloc_frame_place: bad currently_writing")
     if gv_initial_value is None:
         gv_initial_value = self.rgenop.genzeroconst(gv_TYPE)
     gv_initial_value = llimpl.cast(self.b, gv_TYPE.v, gv_initial_value.v)
     v = LLVar(
         llimpl.genop(self.b, 'same_as', [gv_initial_value], gv_TYPE.v))
     return LLPlace(v, llimpl.get_frame_info(self.b, [v]))
Exemple #3
0
 def get_frame_info(self, vars):
     debug_assert(self.rgenop.currently_writing is self,
                  "get_frame_info: bad currently_writing")
     return llimpl.get_frame_info(self.b, vars)
Exemple #4
0
 def get_frame_info(self, vars):
     ll_assert(self.rgenop.currently_writing is self,
               "get_frame_info: bad currently_writing")
     return llimpl.get_frame_info(self.b, vars)