Author: Ronan Lamy <[email protected]>
Branch: callfamily
Changeset: r76858:4565986ec922
Date: 2015-04-21 03:31 +0100
http://bitbucket.org/pypy/pypy/changeset/4565986ec922/

Log:    simplify get_concrete_llfn()

diff --git a/rpython/rtyper/rpbc.py b/rpython/rtyper/rpbc.py
--- a/rpython/rtyper/rpbc.py
+++ b/rpython/rtyper/rpbc.py
@@ -320,12 +320,10 @@
 
     def get_concrete_llfn(self, s_pbc, args_s, op):
         bk = self.rtyper.annotator.bookkeeper
-        descs = list(s_pbc.descriptions)
+        funcdesc, = s_pbc.descriptions
         args = simple_args(args_s)
-        shape, index = self.callfamily.find_row(bk, descs, args, op)
-        funcdesc, = descs
-        row_of_one_graph = self.callfamily.calltables[shape][index]
-        graph = row_of_one_graph[funcdesc]
+        with bk.at_position(None):
+            graph = funcdesc.get_graph(args, op)
         llfn = self.rtyper.getcallable(graph)
         return inputconst(typeOf(llfn), llfn)
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to