Author: Maciej Fijalkowski <[email protected]>
Branch: better-jit-hooks
Changeset: r51072:d498e3a9f2e2
Date: 2012-01-06 18:22 +0200
http://bitbucket.org/pypy/pypy/changeset/d498e3a9f2e2/
Log: shuffle stuff a bit
diff --git a/pypy/rlib/jit.py b/pypy/rlib/jit.py
--- a/pypy/rlib/jit.py
+++ b/pypy/rlib/jit.py
@@ -725,13 +725,6 @@
return hop.genop('jit_marker', vlist,
resulttype=lltype.Void)
-def record_known_class(value, cls):
- """
- Assure the JIT that value is an instance of cls. This is not a precise
- class check, unlike a guard_class.
- """
- assert isinstance(value, cls)
-
class JitPortal(object):
""" This is the main connector between the JIT and the interpreter.
Several methods on portal will be invoked at various stages of JIT running
@@ -767,6 +760,13 @@
""" Returns various statistics
"""
+def record_known_class(value, cls):
+ """
+ Assure the JIT that value is an instance of cls. This is not a precise
+ class check, unlike a guard_class.
+ """
+ assert isinstance(value, cls)
+
class Entry(ExtRegistryEntry):
_about_ = record_known_class
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit