[Pkg] The Trunk: Kernel-nice.1102.mcz

commits at source.squeak.org commits at source.squeak.org
Fri May 5 20:15:32 UTC 2017

Nicolas Cellier uploaded a new version of Kernel to project The Trunk:

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

Name: Kernel-nice.1102
Author: nice
Time: 27 April 2017, 12:07:32.099435 am
UUID: 5049a01f-53bd-4e40-a6a3-a906a14631ad
Ancestors: Kernel-nice.1101

Nuke pre-v3 closureCopy:copiedValues: method. No such message has been sent for a long long time.

Simplify the BlockStartLocator, because there is no need to handle pre-v3 closure anymore.

=============== Diff against Kernel-nice.1101 ===============

Item was changed:
  InstructionClient subclass: #BlockStartLocator
+ 	instanceVariableNames: ''
- 	instanceVariableNames: 'nextJumpIsAroundBlock'
  	classVariableNames: ''
  	poolDictionaries: ''
  	category: 'Kernel-Methods'!

Item was removed:
- ----- Method: BlockStartLocator>>initialize (in category 'initialize-release') -----
- initialize
- 	nextJumpIsAroundBlock := false!

Item was removed:
- ----- Method: BlockStartLocator>>jump: (in category 'instruction decoding') -----
- jump: offset
- 	"If this jump is around a block answer the size of that block."
- 	nextJumpIsAroundBlock ifTrue:
- 		[nextJumpIsAroundBlock := false.
- 		 ^offset]!

Item was removed:
- ----- Method: BlockStartLocator>>send:super:numArgs: (in category 'instruction decoding') -----
- send: selector super: supered numArgs: numberArguments
- 	nextJumpIsAroundBlock := #closureCopy:copiedValues: == selector
- 	"Don't use
- 		nextJumpIsAroundBlock := #(blockCopy: closureCopy:copiedValues:) includes: selector
- 	 since BlueBook BlockContexts do not have their own temps."!

Item was removed:
- ----- Method: Context>>closureCopy:copiedValues: (in category 'controlling') -----
- closureCopy: numArgs copiedValues: anArray
- 	"Distinguish a block of code from its enclosing method by 
- 	creating a BlockClosure for that block. The compiler inserts into all 
- 	methods that contain blocks the bytecodes to send the message 
- 	closureCopy:copiedValues:. Do not use closureCopy:copiedValues: in code that you write!! Only the 
- 	compiler can decide to send the message closureCopy:copiedValues:. Fail if numArgs is 
- 	not a SmallInteger. Optional. No Lookup. See Object documentation 
- 	whatIsAPrimitive."
- 	<primitive: 200>
- 	^BlockClosure outerContext: self startpc: pc + 2 numArgs: numArgs copiedValues: anArray!

More information about the Packages mailing list