[pypy-commit] pypy ppc-jit-backend: Move definition of self.asm from __init__() to setup().

edelsohn noreply at buildbot.pypy.org
Fri Jan 27 20:31:35 CET 2012


Author: edelsohn
Branch: ppc-jit-backend
Changeset: r51885:2743ff5a00f1
Date: 2012-01-27 14:30 -0500
http://bitbucket.org/pypy/pypy/changeset/2743ff5a00f1/

Log:	Move definition of self.asm from __init__() to setup(). Define
	get_latest_force_token() and get_on_leave_jitted_hook().

diff --git a/pypy/jit/backend/ppc/runner.py b/pypy/jit/backend/ppc/runner.py
--- a/pypy/jit/backend/ppc/runner.py
+++ b/pypy/jit/backend/ppc/runner.py
@@ -37,6 +37,8 @@
         self.supports_floats = False
         self.total_compiled_loops = 0
         self.total_compiled_bridges = 0
+
+    def setup(self):
         self.asm = AssemblerPPC(self)
 
     def setup_once(self):
@@ -113,7 +115,13 @@
 
     def get_latest_value_ref(self, index):
         return self.asm.fail_boxes_ptr.getitem(index)
+
+    def get_latest_force_token(self):
+        return self.asm.fail_force_index
     
+    def get_on_leave_jitted_hook(self):
+        return self.asm.leave_jitted_hook
+
     # walk through the given trace and generate machine code
     def _walk_trace_ops(self, codebuilder, operations):
         for op in operations:


More information about the pypy-commit mailing list