Skip to content

Commit 7833829

Browse files
authored
Merge pull request #4691 from MarcusDenker/ContextTempAt-use-Debuggermap
Context tempNamed: use Debuggermap directly
2 parents 5c0a098 + c5b627a commit 7833829

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Debugging-Core/Context.extension.st

+2-4
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,12 @@ Context >> tempNamed: aName [
371371
372372
And when we check self asContext pc we get 17, which is *before* the nil is pushed. Therefore we should pay attention when querying a temporary if the temporary allocation was executed."
373373

374-
| index |
375-
index := self tempNames indexOf: aName.
376-
^ self namedTempAt: index
374+
^self debuggerMap tempNamed: aName in: self
377375
]
378376

379377
{ #category : #'*Debugging-Core' }
380378
Context >> tempNamed: aName put: anObject [
381-
^self namedTempAt: (self tempNames indexOf: aName) put: anObject
379+
^self debuggerMap tempNamed: aName in: self put: anObject
382380
]
383381

384382
{ #category : #'*Debugging-Core' }

0 commit comments

Comments
 (0)