[pypy-svn] r65607 - pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp
antocuni at codespeak.net
antocuni at codespeak.net
Sat Jun 6 00:41:56 CEST 2009
Author: antocuni
Date: Sat Jun 6 00:41:55 2009
New Revision: 65607
Modified:
pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/optimize3.py
Log:
the cls attribute on InstanceNode is used only by OptimizeVirtuals, so move it
there for now, although it will be problably moved somewhere else in a later
refactoring, as tracking the class is not really of competence of
OptimizeVirtuals.
Modified: pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/optimize3.py
==============================================================================
--- pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/optimize3.py (original)
+++ pypy/branch/pyjitpl5-experiments/pypy/jit/metainterp/optimize3.py Sat Jun 6 00:41:55 2009
@@ -11,7 +11,6 @@
assert isinstance(source, Const)
self.const = const
self.escaped = escaped
- self.cls = None
def __repr__(self):
flags = ''
@@ -317,7 +316,7 @@
def init_node(self, node):
node.origfields = r_dict(av_eq, av_hash)
node.curfields = r_dict(av_eq, av_hash)
-
+ node.cls = None
def find_nodes_guard_class(self, spec, op):
# XXX: how does this relate to OptimizeGuards.guard_class?
More information about the Pypy-commit
mailing list