[squeak-dev] The Trunk: KernelTests-dtl.210.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Jan 6 02:09:55 UTC 2012


David T. Lewis uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-dtl.210.mcz

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

Name: KernelTests-dtl.210
Author: dtl
Time: 5 January 2012, 9:09:31.494 pm
UUID: 24df2ac0-4d9b-404c-a7eb-83c3e137676a
Ancestors: KernelTests-nice.209

Update method comment for a test that documents a limitation of the interpreter VM (resolved in Cog)

=============== Diff against KernelTests-nice.209 ===============

Item was changed:
  ----- Method: CompiledMethodTest>>testPerformInSuperclassCanExecutelongMethodWithTemps (in category 'tests - performing') -----
  testPerformInSuperclassCanExecutelongMethodWithTemps
+ 	"This test documents a limitation of the standard Squeak VM that has
+ 	been addressed in the Cog family of VMs. The test will pass on Cog, but
+ 	is expected to fail on an interpreter VM. The test fails on an interpreter VM
+ 	because the perform: primitive reuses the context of the method calling it.
+ 	The primitive adds performed selector arguments to the context variables
+ 	list. So this means that you can execute some methods but not performed
+ 	them if the calling methods defined too many temps."
+ 
  	"self debug: #testPerformInSuperclassCanExecutelongMethodWithTemps"
- 	"the perform: primitive reuses the context of the method calling it. The primitive adds performed selector arguments to the context variables list. So this means that you can execute some methods but not performed them if the calling methods defined too many temps "
  	
  	| temp1 temp2 temp3 |
  	temp1 := 33.
  	temp2 := 666.
  	temp3 := 42. 
  	self assert: (self perform: #a1:a2:a3:a4:a5:a6:a7:a8:a9:a10:a11:a12:a13:a14:a15: withArguments: #(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15) inSuperclass: self class) = 1!




More information about the Squeak-dev mailing list