Skip to content

Commit

Permalink
Mutant pharo-project#520, Reverting [ Replace #ifTrue: with #ifFalse:…
Browse files Browse the repository at this point in the history
… ] on method [ fetchClassOfNonImm: ] 9/9 test case are EQUIVALENT
  • Loading branch information
hogoww committed Feb 25, 2022
1 parent e158f01 commit ac1a7a6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions smalltalksrc/VMMaker/SpurMemoryManager.class.st
Expand Up @@ -4808,15 +4808,17 @@ SpurMemoryManager >> fetchClassOf: oop [
{ #category : #'object access' }
SpurMemoryManager >> fetchClassOfNonImm: objOop [
<inline: #never>
| classIndex |
classIndex := self classIndexOf: objOop.
classIndex <= self classIsItselfClassIndexPun ifTrue: [
classIndex = self classIsItselfClassIndexPun ifFalse: [ ^ objOop ].
classIndex = self isForwardedObjectClassIndexPun ifTrue: [ ^ nilObj ] ].
classIndex <= self classIsItselfClassIndexPun ifTrue:
[classIndex = self classIsItselfClassIndexPun ifTrue:
[^objOop].
"Answer nil to avoid the assert failure in classOrNilAtIndex:"
classIndex = self isForwardedObjectClassIndexPun ifTrue:
[^nilObj]].
self assert: classIndex >= self arrayClassIndexPun.
^ self classOrNilAtIndex: classIndex
^self classOrNilAtIndex: classIndex
]
{ #category : #'interpreter access' }
Expand Down

0 comments on commit ac1a7a6

Please sign in to comment.