[pypy-commit] pypy py3.5: prepare vars for build_map_unpack_with_call

raffael_t pypy.commits at gmail.com
Mon Jun 6 18:23:42 EDT 2016


Author: Raffael Tfirst <raffael.tfirst at gmail.com>
Branch: py3.5
Changeset: r84984:86822511a36a
Date: 2016-06-07 00:22 +0200
http://bitbucket.org/pypy/pypy/changeset/86822511a36a/

Log:	prepare vars for build_map_unpack_with_call

diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -1351,9 +1351,14 @@
             itemcount -= 1
         self.pushvalue(w_sum)
         
+    #TODO
+    #get intersection, store as setentry
     def BUILD_MAP_UNPACK_WITH_CALL(self, itemcount, next_instr):
         w_sum = self.space.newset()
+        num_maps = itemcount & 0xff
+        function_location = (itemcount >> 8) & 0xff
         for i in range(itemcount, 0, -1):
+            arg = self.space.peek(i)
             self.space.call_method(w_sum, 'update', self.space.peek(i))
         while itemcount != 0:
             self.popvalue()


More information about the pypy-commit mailing list