[pypy-svn] r65955 - pypy/branch/pyjitpl5/pypy/jit/tl/spli
benjamin at codespeak.net
benjamin at codespeak.net
Thu Jun 25 02:22:01 CEST 2009
Author: benjamin
Date: Thu Jun 25 02:22:00 2009
New Revision: 65955
Modified:
pypy/branch/pyjitpl5/pypy/jit/tl/spli/interpreter.py
Log:
implement STORE_GLOBAL to get the annotator to generalize the global dict
Modified: pypy/branch/pyjitpl5/pypy/jit/tl/spli/interpreter.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/spli/interpreter.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/spli/interpreter.py Thu Jun 25 02:22:00 2009
@@ -153,6 +153,11 @@
self.push(self.globs[name])
return next_instr
+ def STORE_GLOBAL(self, name_index, next_instr, code):
+ name = self.code.co_names[name_index]
+ self.globs[name] = self.pop()
+ return next_instr
+
def RETURN_VALUE(self, _, next_instr, code):
raise Return(self.pop())
More information about the Pypy-commit
mailing list