示例#1
0
 def __init__(self, *args, **kwds):
     Function.__init__(self, *args, **kwds)
     self.ids = {}
     self.code = self.chunks[0].getcode()
     if not self.code and len(self.chunks) > 1 and isinstance(self.chunks[1], TraceForOpcode):
         # First chunk might be missing the debug_merge_point op
         self.code = self.chunks[1].getcode()
     if self.code:
         self.compute_ids(self.ids)
示例#2
0
文件: model.py 项目: njues/Sypy
 def __init__(self, *args, **kwds):
     Function.__init__(self, *args, **kwds)
     self.ids = {}
     self.code = self.chunks[0].getcode()
     if not self.code and len(self.chunks)>1 and \
            isinstance(self.chunks[1], TraceForOpcode):
         # First chunk might be missing the debug_merge_point op
         self.code = self.chunks[1].getcode()
     if self.code:
         self.compute_ids(self.ids)
示例#3
0
文件: model.py 项目: pombredanne/pypy
 def __init__(self, *args, **kwds):
     Function.__init__(self, *args, **kwds)
     self.ids = {}
     self.code = self.chunks[0].getcode()
     if self.code:
         self.compute_ids(self.ids)