[pypy-commit] pypy stmgc-c7: Add llop.stm_setup_expand_marker_for_pypy here

arigo noreply at buildbot.pypy.org
Sat Apr 19 14:50:43 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: stmgc-c7
Changeset: r70770:7f57612f9a81
Date: 2014-04-19 14:15 +0200
http://bitbucket.org/pypy/pypy/changeset/7f57612f9a81/

Log:	Add llop.stm_setup_expand_marker_for_pypy here

diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -387,6 +387,16 @@
             if isinstance(w_mod, Module) and not w_mod.startup_called:
                 w_mod.init(self)
 
+        if self.config.translation.stm:
+            from rpython.rtyper.lltypesystem import lltype
+            from rpython.rtyper.lltypesystem.lloperation import llop
+            from rpython.rlib.objectmodel import instantiate
+            from pypy.interpreter.pycode import PyCode
+            #
+            llop.stm_setup_expand_marker_for_pypy(
+                lltype.Void, instantiate(PyCode),
+                "co_filename", "co_name", "co_firstlineno", "co_lnotab")
+
     def finish(self):
         self.wait_for_thread_shutdown()
         w_exitfunc = self.sys.getdictvalue(self, 'exitfunc')


More information about the pypy-commit mailing list