[squeak-dev] The Trunk: System-eem.1389.mcz
commits at source.squeak.org
commits at source.squeak.org
Sun Feb 12 21:32:51 UTC 2023
Eliot Miranda uploaded a new version of System to project The Trunk:
http://source.squeak.org/trunk/System-eem.1389.mcz
==================== Summary ====================
Name: System-eem.1389
Author: eem
Time: 12 February 2023, 1:32:45.417157 pm
UUID: ccf5e3ec-c446-404a-88f4-ac3f8bb3ed29
Ancestors: System-mt.1388
Fix SystemNavigation>>#unusedBlocks to be bytecode set agnoistic.
=============== Diff against System-mt.1388 ===============
Item was changed:
----- Method: SystemNavigation>>unusedBlocks (in category 'query') -----
unusedBlocks
"Answer all methods that contain a block that is not used (not
sent a message, returned, passed as an argument, or assigned)."
"SystemNavigation new unusedBlocks"
"SystemNavigation new
browseMessageList: SystemNavigation new unusedBlocks
name: 'unused blocks'"
^self allMethodsSelect:
+ [:m|
+ (InstructionStream on: m)
+ scanForInstructionSequence:
+ [:a :b|
+ (#(pushClosureCopyNumCopiedValues:numArgs:blockSize: pushFullClosure:numCopied:) includes: a selector)
+ and: [b selector == #doPop]]]!
- [:m| | is |
- is := InstructionStream on: m.
- is scanFor: [:b| b = 143 and: [(m at: is thirdByte * 256 + is fourthByte + is pc + 4) = 135]]]!
More information about the Squeak-dev
mailing list
|