[pypy-commit] pypy optresult-unroll: add equality to llgraph faking of symbolics
fijal
noreply at buildbot.pypy.org
Thu Sep 3 18:35:47 CEST 2015
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: optresult-unroll
Changeset: r79395:2786719da854
Date: 2015-09-03 18:35 +0200
http://bitbucket.org/pypy/pypy/changeset/2786719da854/
Log: add equality to llgraph faking of symbolics
diff --git a/rpython/jit/backend/llgraph/runner.py b/rpython/jit/backend/llgraph/runner.py
--- a/rpython/jit/backend/llgraph/runner.py
+++ b/rpython/jit/backend/llgraph/runner.py
@@ -93,6 +93,12 @@
def __init__(self, STRUCT_OR_ARRAY):
self.STRUCT_OR_ARRAY = STRUCT_OR_ARRAY
+ def __eq__(self, other):
+ return self.STRUCT_OR_ARRAY is other.STRUCT_OR_ARRAY
+
+ def __ne__(self, other):
+ return not self == other
+
class SizeDescr(AbstractDescr):
def __init__(self, S, vtable, runner):
assert not isinstance(vtable, bool)
More information about the pypy-commit
mailing list