[pypy-commit] pypy default: Details
arigo
noreply at buildbot.pypy.org
Sun Feb 8 20:15:35 CET 2015
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r75767:9f3564782055
Date: 2015-02-08 20:15 +0100
http://bitbucket.org/pypy/pypy/changeset/9f3564782055/
Log: Details
diff --git a/pypy/doc/interpreter-optimizations.rst b/pypy/doc/interpreter-optimizations.rst
--- a/pypy/doc/interpreter-optimizations.rst
+++ b/pypy/doc/interpreter-optimizations.rst
@@ -165,7 +165,7 @@
We improved this by keeping method lookup separated from method call, unlike
some other approaches, but using the value stack as a cache instead of building
a temporary object. We extended the bytecode compiler to (optionally) generate
-the following code for ``obj.meth(x)``::
+the following code for ``obj.meth(x, y)``::
LOAD_GLOBAL obj
LOOKUP_METHOD meth
@@ -181,7 +181,7 @@
the attribute actually refers to a function object from the class; when this is
not the case, ``LOOKUP_METHOD`` still pushes two values, but one *(im_func)* is
simply the regular result that ``LOAD_ATTR`` would have returned, and the other
-*(im_self)* is a None placeholder.
+*(im_self)* is an interpreter-level None placeholder.
After pushing the arguments, the layout of the stack in the above
example is as follows (the stack grows upwards):
More information about the pypy-commit
mailing list