[pypy-svn] r70407 - pypy/branch/jit-trace/pypy/rlib

arigo at codespeak.net arigo at codespeak.net
Mon Jan 4 21:57:40 CET 2010


Author: arigo
Date: Mon Jan  4 21:57:39 2010
New Revision: 70407

Modified:
   pypy/branch/jit-trace/pypy/rlib/jit.py
Log:
Some code, but it seems that jit.force_virtualizable() does not need
to be explicitly called after all.


Modified: pypy/branch/jit-trace/pypy/rlib/jit.py
==============================================================================
--- pypy/branch/jit-trace/pypy/rlib/jit.py	(original)
+++ pypy/branch/jit-trace/pypy/rlib/jit.py	Mon Jan  4 21:57:39 2010
@@ -99,6 +99,25 @@
         hop.exception_cannot_occur()
         return hop.inputconst(lltype.Signed, _we_are_jitted)
 
+
+##def force_virtualizable(virtualizable):
+##    pass
+
+##class Entry(ExtRegistryEntry):
+##    _about_ = force_virtualizable
+
+##    def compute_result_annotation(self):
+##        from pypy.annotation import model as annmodel
+##        return annmodel.s_None
+
+##    def specialize_call(self, hop):
+##        [vinst] = hop.inputargs(hop.args_r[0])
+##        cname = inputconst(lltype.Void, None)
+##        cflags = inputconst(lltype.Void, {})
+##        hop.exception_cannot_occur()
+##        return hop.genop('jit_force_virtualizable', [vinst, cname, cflags],
+##                         resulttype=lltype.Void)
+
 # ____________________________________________________________
 # VRefs
 



More information about the Pypy-commit mailing list