[Vm-dev] Adding object to foo->scpecialObject

bryce at kampjes.demon.co.uk bryce at kampjes.demon.co.uk
Thu Jul 26 09:10:06 UTC 2007

Mathieu Suen writes:
 > I would like to implement a bytecode to create the ClosureEnvironment  
 > and see if the performance of the NewCompiler is better
 > 	Mth

What I did for Exupery's contexts is to make them compact classes

	self becomeCompactAt: 15

Then the context object can be created by:

  newContext := self 
	instantiateContext: (self 
		fetchPointer: 14
		ofObject: (self splObj: 28 "Current index, FIX") )
		sizeInBytes: SmallContextSize.


More information about the Vm-dev mailing list