[pypy-svn] r33163 - pypy/dist/pypy/jit/codegen
mwh at codespeak.net
mwh at codespeak.net
Wed Oct 11 14:15:36 CEST 2006
Author: mwh
Date: Wed Oct 11 14:15:34 2006
New Revision: 33163
Modified:
pypy/dist/pypy/jit/codegen/model.py
Log:
add method stubs to AbstractRGenOp with pointedly empty docstrings :)
Modified: pypy/dist/pypy/jit/codegen/model.py
==============================================================================
--- pypy/dist/pypy/jit/codegen/model.py (original)
+++ pypy/dist/pypy/jit/codegen/model.py Wed Oct 11 14:15:34 2006
@@ -26,7 +26,65 @@
class AbstractRGenOp(object):
- pass
+
+ def newgraph(self, sigtoken):
+ """ """
+ raise NotImplementedError
+
+ @staticmethod
+ @specialize.genconst(0)
+ def genconst(llvalue):
+ """ """
+ raise NotImplementedError
+
+ constPrebuiltGlobal = genconst
+
+ def gencallableconst(self, sigtoken, name, entrypointaddr):
+ """ """
+ raise NotImplementedError
+
+ # the "token" methods render non-RPython data structures
+ # (instances of LowLevelType) into RPython data structures. they
+ # are memo-specialized, so they can be full Python inside, but
+ # each method must always return the same type, so the jit can
+ # store the results in a list, for example (each backend can
+ # decide what this type is independently, though)
+
+ @staticmethod
+ @specialize.memo()
+ def fieldToken(T, name):
+ """ """
+ raise NotImplementedError
+
+ @staticmethod
+ @specialize.memo()
+ def allocToken(T):
+ """ """
+ raise NotImplementedError
+
+ @staticmethod
+ @specialize.memo()
+ def varsizeAllocToken(T):
+ """ """
+ raise NotImplementedError
+
+ @staticmethod
+ @specialize.memo()
+ def arrayToken(A):
+ """ """
+ raise NotImplementedError
+
+ @staticmethod
+ @specialize.memo()
+ def kindToken(T):
+ """ """
+ raise NotImplementedError
+
+ @staticmethod
+ @specialize.memo()
+ def sigToken(FUNCTYPE):
+ """ """
+ raise NotImplementedError
class CodeGenSwitch(object):
More information about the Pypy-commit
mailing list