Author: Maciej Fijalkowski <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to