Author: David Schneider <[email protected]>
Branch: remove-globals-in-jit
Changeset: r59669:5214949fc6a9
Date: 2012-12-20 15:41 +0100
http://bitbucket.org/pypy/pypy/changeset/5214949fc6a9/

Log:    move methods to llmodel

diff --git a/pypy/jit/backend/llsupport/llmodel.py 
b/pypy/jit/backend/llsupport/llmodel.py
--- a/pypy/jit/backend/llsupport/llmodel.py
+++ b/pypy/jit/backend/llsupport/llmodel.py
@@ -193,6 +193,12 @@
 
     # ------------------- helpers and descriptions --------------------
 
+    def gc_set_extra_threshold(self):
+        llop.gc_set_extra_threshold(lltype.Void, self.deadframe_size_max)
+
+    def gc_clear_extra_threshold(self):
+        llop.gc_set_extra_threshold(lltype.Void, 0)
+
     @staticmethod
     def _cast_int_to_gcref(x):
         # dangerous!  only use if you are sure no collection could occur
diff --git a/pypy/jit/backend/x86/runner.py b/pypy/jit/backend/x86/runner.py
--- a/pypy/jit/backend/x86/runner.py
+++ b/pypy/jit/backend/x86/runner.py
@@ -1,6 +1,5 @@
 import py
 from pypy.rpython.lltypesystem import lltype, llmemory, rffi
-from pypy.rpython.lltypesystem.lloperation import llop
 from pypy.rpython.llinterp import LLInterpreter
 from pypy.rlib.objectmodel import we_are_translated, specialize
 from pypy.rlib.jit_hooks import LOOP_RUN_CONTAINER
@@ -58,12 +57,6 @@
         else:
             return 1000
 
-    def gc_set_extra_threshold(self):
-        llop.gc_set_extra_threshold(lltype.Void, self.deadframe_size_max)
-
-    def gc_clear_extra_threshold(self):
-        llop.gc_set_extra_threshold(lltype.Void, 0)
-
     def setup(self):
         self.assembler = Assembler386(self, self.translate_support_code)
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to