[squeak-dev] The Trunk: Kernel-cmm.608.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Aug 16 02:49:29 UTC 2011


Chris Muller uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-cmm.608.mcz

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

Name: Kernel-cmm.608
Author: cmm
Time: 5 August 2011, 1:03:00.088 pm
UUID: 35c1e76a-833d-4959-8b99-cfcd8d31df3f
Ancestors: Kernel-cmm.607

Allow creation of ContextParts with #basicNew: as long as a valid frame-size is specified.

=============== Diff against Kernel-cmm.607 ===============

Item was changed:
  ----- Method: ContextPart class>>basicNew: (in category 'instance creation') -----
+ basicNew: size 
+ 	^ (size = CompiledMethod smallFrameSize or: [ size = CompiledMethod fullFrameSize ])
+ 		ifTrue: [ super basicNew: size ]
+ 		ifFalse: [ self error: 'Contexts must be ' , CompiledMethod smallFrameSize , ' or ' , CompiledMethod fullFrameSize , ' bytes.' ]!
- basicNew: size
- 
- 	self error: 'Contexts must only be created with newForMethod:'!




More information about the Squeak-dev mailing list