Author: Armin Rigo <[email protected]>
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')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to