Source

pypy / pypy / objspace / std / frame.py

Diff from to

pypy/objspace/std/frame.py

     if space.config.objspace.std.optimized_comparison_op:
         StdObjSpaceFrame.COMPARE_OP = fast_COMPARE_OP
     return StdObjSpaceFrame
-
-
-def get_logging():
-    for name, func in pyframe.PyFrame.__dict__.iteritems():
-        if hasattr(func, 'binop'):
-            operationname = func.binop
-            def make_opimpl(operationname):
-                def opimpl(f, *ignored):
-                    operation = getattr(f.space, operationname)
-                    w_2 = f.popvalue()
-                    w_1 = f.popvalue()
-                    if we_are_translated():
-                        s = operationname + ' ' + str(w_1) + ' ' + str(w_2)
-                    else:
-                        names = (w_1.__class__.__name__ + ' ' +
-                                 w_2.__class__.__name__)
-                        s = operationname + ' ' + names
-                    f._space_op_types.append(s)
-                    w_result = operation(w_1, w_2)
-                    f.pushvalue(w_result)
-                return func_with_new_name(opimpl,
-                                          "opcode_impl_for_%s" % operationname)
-            yield name, make_opimpl(operationname)
-        elif hasattr(func, 'unaryop'):
-            operationname = func.unaryop
-            def make_opimpl(operationname):
-                def opimpl(f, *ignored):
-                    operation = getattr(f.space, operationname)
-                    w_1 = f.popvalue()
-                    if we_are_translated():
-                        s = operationname + ' ' + str(w_1)
-                    else:
-                        s = operationname + ' ' + w_1.__class__.__name__
-                    f._space_op_types.append(s)
-                    w_result = operation(w_1)
-                    f.pushvalue(w_result)
-                return func_with_new_name(opimpl,
-                                          "opcode_impl_for_%s" % operationname)
-            yield name, make_opimpl(operationname)