Author: Antonio Cuni <[email protected]>
Branch: ffistruct
Changeset: r47144:303389ce8fb7
Date: 2011-09-07 16:50 +0200
http://bitbucket.org/pypy/pypy/changeset/303389ce8fb7/

Log:    this method is elidable

diff --git a/pypy/module/_ffi/interp_struct.py 
b/pypy/module/_ffi/interp_struct.py
--- a/pypy/module/_ffi/interp_struct.py
+++ b/pypy/module/_ffi/interp_struct.py
@@ -1,6 +1,7 @@
 from pypy.rpython.lltypesystem import lltype, rffi
 from pypy.rlib import clibffi
 from pypy.rlib import libffi
+from pypy.rlib import jit
 from pypy.interpreter.baseobjspace import Wrappable
 from pypy.interpreter.typedef import TypeDef, interp_attrproperty
 from pypy.interpreter.gateway import interp2app, unwrap_spec
@@ -45,7 +46,7 @@
     def allocate(self, space):
         return W__StructInstance(self)
 
-    #@jit.elidable...
+    @jit.elidable
     def get_type_and_offset_for_field(self, name):
         try:
             w_field = self.name2w_field[name]
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to