[pypy-svn] r13899 - pypy/dist/pypy/rpython
mwh at codespeak.net
mwh at codespeak.net
Sat Jun 25 20:03:50 CEST 2005
Author: mwh
Date: Sat Jun 25 20:03:49 2005
New Revision: 13899
Modified:
pypy/dist/pypy/rpython/rpbc.py
Log:
OK, that was an excessively complicated fix to the
bound-method-of-Constant issue.
Modified: pypy/dist/pypy/rpython/rpbc.py
==============================================================================
--- pypy/dist/pypy/rpython/rpbc.py (original)
+++ pypy/dist/pypy/rpython/rpbc.py Sat Jun 25 20:03:49 2005
@@ -222,8 +222,7 @@
hop2.args_s[0] = self.s_im_self # make the 1st arg stand for 'im_self'
hop2.args_r[0] = self.r_im_self # (same lowleveltype as 'self')
if isinstance(hop2.args_v[0], Constant):
- hop2.args_v[0] = hop2.llops.genop('same_as', [hop2.args_v[0]],
- resulttype=hop.args_r[0])
+ hop2.args_v[0] = hop.inputarg(self, 0)
c = Constant(self.function)
hop2.v_s_insertfirstarg(c, s_function) # insert 'function'
# now hop2 looks like simple_call(function, self, args...)
More information about the Pypy-commit
mailing list