[pypy-svn] rev 2048 - in pypy/trunk/src/pypy: objspace/flow translator
hpk at codespeak.net
hpk at codespeak.net
Sat Oct 25 12:05:48 CEST 2003
Author: hpk
Date: Sat Oct 25 12:05:47 2003
New Revision: 2048
Added:
pypy/trunk/src/pypy/objspace/flow/model.py
- copied, changed from rev 2046, pypy/trunk/src/pypy/translator/flowmodel.idea
Removed:
pypy/trunk/src/pypy/translator/flowmodel.idea
Log:
moved the rough model.py idea to its new place
Copied: pypy/trunk/src/pypy/objspace/flow/model.py (from rev 2046, pypy/trunk/src/pypy/translator/flowmodel.idea)
==============================================================================
--- pypy/trunk/src/pypy/translator/flowmodel.idea (original)
+++ pypy/trunk/src/pypy/objspace/flow/model.py Sat Oct 25 12:05:47 2003
@@ -1,4 +1,8 @@
-basic discussion from 4th of october 2003
+# The model produced by the flowobjspace
+# this is to be used by the translator mainly.
+#
+# the below object/attribute model evolved from
+# a discussion in Berlin, 4th of october 2003
class FunctionGraph:
startblock #
Deleted: /pypy/trunk/src/pypy/translator/flowmodel.idea
==============================================================================
--- /pypy/trunk/src/pypy/translator/flowmodel.idea Sat Oct 25 12:05:47 2003
+++ (empty file)
@@ -1,35 +0,0 @@
-basic discussion from 4th of october 2003
-
-class FunctionGraph:
- startblock #
- returnblock #
- name # function name (possibly mangled already)
-
-class Link:
- exitcase # Constant (or so)
- args # mixed list of variable/const
- target # block
-
-class Block:
- input_args # mixed list of variable/const
- operations # list of SpaceOperation(s)
- exitswitch # variable
- exits # list of Link(s)
-
-class ReturnBlock:
- input_args # a single variable
- operations = None # for uniformity
- exits = () # ?
-
-class Variable:
- name
-
-class Const:
- value # a concrete value
-
-class SpaceOperation:
- opname # operation name
- args # mixed list of variables/Constants (can be mixed)
- result # either Variable or Constant instance
-
-
More information about the Pypy-commit
mailing list