Hakan Ardo avatar Hakan Ardo committed 5cee0d7

mark both compared virtualstates

Comments (0)

Files changed (1)

pypy/jit/metainterp/optimizeopt/virtualstate.py

             if renum[self.position] == other.position:
                 return True
             bad[self] = True
+            bad[other] = True
             return False
         renum[self.position] = other.position
         if not self._generalization_of(other):
             bad[self] = True
+            bad[other] = True
             return False
         assert len(self.fielddescrs) == len(self.fieldstate)
         assert len(other.fielddescrs) == len(other.fieldstate)
         if len(self.fielddescrs) != len(other.fielddescrs):
             bad[self] = True
+            bad[other] = True
             return False
         
         for i in range(len(self.fielddescrs)):
             if other.fielddescrs[i] is not self.fielddescrs[i]:
                 bad[self] = True
+                bad[other] = True
                 return False
             if not self.fieldstate[i].generalization_of(other.fieldstate[i],
                                                         renum, bad):
                 bad[self] = True
+                bad[other] = True
                 return False
 
         return True
             if renum[self.position] == other.position:
                 return True
             bad[self] = True
+            bad[other] = True
             return False
         renum[self.position] = other.position
         if self.arraydescr is not other.arraydescr:
             bad[self] = True
+            bad[other] = True
             return False
         if len(self.fieldstate) != len(other.fieldstate):
             bad[self] = True
+            bad[other] = True
             return False
         for i in range(len(self.fieldstate)):
             if not self.fieldstate[i].generalization_of(other.fieldstate[i],
                                                         renum, bad):
                 bad[self] = True
+                bad[other] = True
                 return False
         return True
 
             if renum[self.position] == other.position:
                 return True
             bad[self] = True
+            bad[other] = True
             return False
         renum[self.position] = other.position
         if not isinstance(other, NotVirtualStateInfo):
             bad[self] = True
+            bad[other] = True
             return False
         if other.level < self.level:
             bad[self] = True
+            bad[other] = True
             return False
         if self.level == LEVEL_CONSTANT:
             if not self.constbox.same_constant(other.constbox):
                 bad[self] = True
+                bad[other] = True
                 return False
         elif self.level == LEVEL_KNOWNCLASS:
             if self.known_class != other.known_class: # FIXME: use issubclass?
                 bad[self] = True
+                bad[other] = True
                 return False
         return self.intbound.contains_bound(other.intbound)
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.