[pypy-svn] r62525 - in pypy/branch/pyjitpl5/pypy/jit/metainterp: . test
fijal at codespeak.net
fijal at codespeak.net
Wed Mar 4 15:38:23 CET 2009
Author: fijal
Date: Wed Mar 4 15:38:22 2009
New Revision: 62525
Modified:
pypy/branch/pyjitpl5/pypy/jit/metainterp/graphpage.py
pypy/branch/pyjitpl5/pypy/jit/metainterp/resoperation.py
pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_virtual.py
Log:
get*_pure operations
Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/graphpage.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/graphpage.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/graphpage.py Wed Mar 4 15:38:22 2009
@@ -68,10 +68,10 @@
_prev = Box._extended_display
try:
Box._extended_display = False
- #if len(self.graphs) > 1:
- # graphs = self.graphs[1:]
- #else:
- graphs = self.graphs
+ if len(self.graphs) > 1:
+ graphs = self.graphs[1:]
+ else:
+ graphs = self.graphs
for i, graph in enumerate(graphs):
self.gengraph(graph, i)
finally:
Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/resoperation.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/resoperation.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/resoperation.py Wed Mar 4 15:38:22 2009
@@ -138,11 +138,14 @@
ARRAYLEN_GC = 77
STRLEN = 78
STRGETITEM = 79
- _ALWAYS_PURE_LAST = 79 # ----- end of always_pure operations -----
+ GETFIELD_GC_PURE = 80
+ GETFIELD_RAW_PURE = 81
+ GETARRAYITEM_GC_PURE = 82
+ _ALWAYS_PURE_LAST = 82 # ----- end of always_pure operations -----
- GETARRAYITEM_GC = 80
- GETFIELD_GC = 81
- GETFIELD_RAW = 82
+ GETARRAYITEM_GC = 83
+ GETFIELD_GC = 84
+ GETFIELD_RAW = 85
_NOSIDEEFFECT_LAST = 89 # ----- end of no_side_effect operations -----
NEW = 90
Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_virtual.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_virtual.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_virtual.py Wed Mar 4 15:38:22 2009
@@ -168,6 +168,9 @@
res = self.meta_interp(f, [20])
assert res == 9
+ def test_immutable_constant_getfield(self):
+ xxx
+
##class TestOOtype(VirtualTests, OOJitMixin):
## _new = staticmethod(ootype.new)
More information about the Pypy-commit
mailing list