[pypy-svn] pypy default: Fix two more subclassings of analyze_simple_operation().

arigo commits-noreply at bitbucket.org
Sat Mar 12 22:36:44 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r42540:f0ce44bf0e3e
Date: 2011-03-12 15:54 -0500
http://bitbucket.org/pypy/pypy/changeset/f0ce44bf0e3e/

Log:	Fix two more subclassings of analyze_simple_operation().

diff --git a/pypy/translator/stackless/transform.py b/pypy/translator/stackless/transform.py
--- a/pypy/translator/stackless/transform.py
+++ b/pypy/translator/stackless/transform.py
@@ -247,7 +247,7 @@
         graphanalyze.GraphAnalyzer.__init__(self, translator)
         self.stackless_gc = stackless_gc
 
-    def analyze_simple_operation(self, op):
+    def analyze_simple_operation(self, op, graphinfo):
         if op.opname in ('yield_current_frame_to_caller', 'resume_point',
                 'resume_state_invoke', 'resume_state_create', 'stack_frames_depth',
                 'stack_switch', 'stack_unwind', 'stack_capture',

diff --git a/pypy/rpython/memory/gctransform/framework.py b/pypy/rpython/memory/gctransform/framework.py
--- a/pypy/rpython/memory/gctransform/framework.py
+++ b/pypy/rpython/memory/gctransform/framework.py
@@ -46,7 +46,7 @@
             return True
         return graphanalyze.GraphAnalyzer.analyze_external_call(self, op,
                                                                 seen)
-    def analyze_simple_operation(self, op):
+    def analyze_simple_operation(self, op, graphinfo):
         if op.opname in ('malloc', 'malloc_varsize'):
             flags = op.args[1].value
             return flags['flavor'] == 'gc' and not flags.get('nocollect', False)


More information about the Pypy-commit mailing list