[pypy-svn] r74927 - pypy/branch/blackhole-improvement/pypy/jit/metainterp

arigo at codespeak.net arigo at codespeak.net
Sun May 30 19:21:33 CEST 2010


Author: arigo
Date: Sun May 30 19:21:31 2010
New Revision: 74927

Modified:
   pypy/branch/blackhole-improvement/pypy/jit/metainterp/resoperation.py
Log:
Fix a bit the comment.


Modified: pypy/branch/blackhole-improvement/pypy/jit/metainterp/resoperation.py
==============================================================================
--- pypy/branch/blackhole-improvement/pypy/jit/metainterp/resoperation.py	(original)
+++ pypy/branch/blackhole-improvement/pypy/jit/metainterp/resoperation.py	Sun May 30 19:21:31 2010
@@ -22,10 +22,11 @@
         self.setdescr(descr)
 
     def setdescr(self, descr):
-        # for 'call', 'new', 'getfield_gc'...: the descr is a number provided
-        # by the backend holding details about the type of the operation --
-        # actually an instance of a class, typically Descr, that inherits
-        # from AbstractDescr
+        # for 'call', 'new', 'getfield_gc'...: the descr is a prebuilt
+        # instance provided by the backend holding details about the type
+        # of the operation.  It must inherit from AbstractDescr.  The
+        # backend provides it with cpu.fielddescrof(), cpu.arraydescrof(),
+        # cpu.calldescrof(), and cpu.typedescrof().
         from pypy.jit.metainterp.history import check_descr
         check_descr(descr)
         self.descr = descr



More information about the Pypy-commit mailing list