The Trunk: Kernel-mt.1266.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-mt.1266.mcz

commits-2
Marcel Taeumel uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-mt.1266.mcz

==================== Summary ====================

Name: Kernel-mt.1266
Author: mt
Time: 6 September 2019, 8:11:10.403526 am
UUID: 61361169-2419-8e48-9661-e79017d0c837
Ancestors: Kernel-eem.1265

Make #messagesSequence compatible with SistaV1 and CompiledBlcoks again *and* keep the meaning of #messagesSequence as restored in the previous commit by eem.

=============== Diff against Kernel-eem.1265 ===============

Item was changed:
  ----- Method: CompiledCode>>messagesSequence (in category 'scanning') -----
  messagesSequence
+ "Answer a sequence of all the message selectors sent by this method in the order they are sent. Unlike #messages this may include duplicates. Note that both the sources and the decompiled sources might suggest different results. The returned information reflect the actual bytecode."
- "Answer a sequence of all the message selectors sent by this method in the order
- they are sent.  Unlike messages this may include duplicates."
 
+ ^ Array streamContents: [:result |
+ self messagesDo: [:selector | result nextPut: selector]]!
- ^Array streamContents:
- [:str| | scanner |
- scanner := InstructionStream on: self.
- scanner scanFor:
- [:x | | selectorOrSelf |
- (selectorOrSelf := scanner selectorToSendOrSelf) == scanner ifFalse:
- [str nextPut: selectorOrSelf].
- false "keep scanning"]]!