[squeak-dev] The Inbox: Kernel-mt.1266.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Sep 6 06:11:17 UTC 2019


A new version of Kernel was added to project The Inbox:
http://source.squeak.org/inbox/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"]]!



More information about the Squeak-dev mailing list