Author: Armin Rigo <[email protected]>
Branch: no-failargs
Changeset: r58635:9a21fc7f0ca1
Date: 2012-10-30 14:49 +0100
http://bitbucket.org/pypy/pypy/changeset/9a21fc7f0ca1/

Log:    Tweaks

diff --git a/pypy/jit/backend/llsupport/jitframe.py 
b/pypy/jit/backend/llsupport/jitframe.py
--- a/pypy/jit/backend/llsupport/jitframe.py
+++ b/pypy/jit/backend/llsupport/jitframe.py
@@ -12,6 +12,7 @@
     # For the front-end: a GCREF for the savedata
     ('jf_savedata', llmemory.GCREF),
 
-    # XXX
+    # All values are stored in the following array.
     ('jf_values', lltype.Array(llmemory.Address)))
+
 JITFRAMEPTR = lltype.Ptr(JITFRAME)
diff --git a/pypy/jit/metainterp/resoperation.py 
b/pypy/jit/metainterp/resoperation.py
--- a/pypy/jit/metainterp/resoperation.py
+++ b/pypy/jit/metainterp/resoperation.py
@@ -39,6 +39,8 @@
     """ NOT_RPYTHON this is for tests only!
     """
     cls = opclasses[opnum]
+    if 0 <= cls.NUMARGS <= 3:
+        assert len(args) == cls.NUMARGS
     if cls.NUMARGS == 0:
         return create_resop_0(opnum, result, descr, mutable=mutable)
     elif cls.NUMARGS == 1:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to