Skip to content

Commit

Permalink
Mutant pharo-project#521, Installing [ Replace #ifTrue: with #ifFalse…
Browse files Browse the repository at this point in the history
…: ] on method [ fetchClassOfNonImm: ] 9 test cases.
  • Loading branch information
hogoww committed Feb 25, 2022
1 parent ac1a7a6 commit 4f1fa53
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions smalltalksrc/VMMaker/SpurMemoryManager.class.st
Expand Up @@ -4808,17 +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 ifTrue:
[^objOop].
"Answer nil to avoid the assert failure in classOrNilAtIndex:"
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 ifFalse: [
^ nilObj ] ].
self assert: classIndex >= self arrayClassIndexPun.
^self classOrNilAtIndex: classIndex
^ self classOrNilAtIndex: classIndex
]
{ #category : #'interpreter access' }
Expand Down

0 comments on commit 4f1fa53

Please sign in to comment.