Skip to content

Commit

Permalink
remove unused method StackInterpreter>>findSelectorAndClassForMethod:…
Browse files Browse the repository at this point in the history
…lookupClass:do:
  • Loading branch information
privat committed Jul 4, 2023
1 parent 0069deb commit d5ed189
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions smalltalksrc/VMMaker/StackInterpreter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -6139,31 +6139,6 @@ StackInterpreter >> findSPOrNilOf: theFP on: thePage startingFrom: startFrame [
^nil
]

{ #category : #'debug support' }
StackInterpreter >> findSelectorAndClassForMethod: meth lookupClass: startClass do: binaryBlock [
"Search startClass' class hierarchy searching for method and if found, evaluate aBinaryBlock
with the selector and class where the method is found. Otherwise evaluate aBinaryBlock
with doesNotUnderstand: and nil."
| currClass classDict classDictSize methodArray i |
currClass := startClass.
[classDict := objectMemory fetchPointer: MethodDictionaryIndex ofObject: currClass.
classDictSize := objectMemory numSlotsOf: classDict.
classDictSize > MethodArrayIndex ifTrue:
[methodArray := objectMemory fetchPointer: MethodArrayIndex ofObject: classDict.
i := 0.
[i <= (classDictSize - SelectorStart)] whileTrue:
[meth = (objectMemory fetchPointer: i ofObject: methodArray) ifTrue:
[^binaryBlock
value: (objectMemory fetchPointer: i + SelectorStart ofObject: classDict)
value: currClass].
i := i + 1]].
currClass := self superclassOf: currClass.
currClass = objectMemory nilObject] whileFalse.
^binaryBlock "method not found in superclass chain"
value: (objectMemory splObj: SelectorDoesNotUnderstand)
value: nil
]

{ #category : #'debug support' }
StackInterpreter >> findSelectorOfMethod: meth [
| classObj classDict classDictSize methodArray i |
Expand Down

0 comments on commit d5ed189

Please sign in to comment.