コード例 #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