예제 #1
0
 def _check_no_forwarding(self):
     """ Ensures that no optimization state is attached to relevant operations
     before importing anything. """
     # Some of these may be redunant
     check_no_forwarding([
         self.end_args, self.next_iteration_args, self.renamed_inputargs,
         self.short_inputargs,
         self.exported_infos.keys()
     ])
     for box in self.short_boxes:
         box._check_no_forwarding()
예제 #2
0
파일: unroll.py 프로젝트: mozillazg/pypy
 def _check_no_forwarding(self):
     """ Ensures that no optimization state is attached to relevant operations
     before importing anything. """
     # Some of these may be redunant
     check_no_forwarding([
         self.end_args,
         self.next_iteration_args,
         self.renamed_inputargs,
         self.short_inputargs,
         self.exported_infos.keys()])
     for box in self.short_boxes:
         box._check_no_forwarding()
예제 #3
0
 def _check_no_forwarding(self, lsts, check_newops=True):
     check_no_forwarding(lsts)
     if check_newops:
         assert not self.optimizer._newoperations
예제 #4
0
파일: unroll.py 프로젝트: mozillazg/pypy
 def _check_no_forwarding(self, lsts, check_newops=True):
     check_no_forwarding(lsts)
     if check_newops:
         assert not self.optimizer._newoperations