[Vm-dev] VM Maker: Cog-eem.191.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Aug 13 20:32:55 UTC 2014


Eliot Miranda uploaded a new version of Cog to project VM Maker:
http://source.squeak.org/VMMaker/Cog-eem.191.mcz

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

Name: Cog-eem.191
Author: eem
Time: 13 August 2014, 1:32:28.68 pm
UUID: a5207d9b-be52-494a-8b47-924610a1355e
Ancestors: Cog-eem.190

Add the API for installing bytecode sets to the Spur bootstrap.

=============== Diff against Cog-eem.190 ===============

Item was added:
+ ----- Method: CompiledMethod class>>CompiledMethodclassPROTOTYPEinstallPrimaryBytecodeSet: (in category '*Cog-method prototypes') -----
+ CompiledMethodclassPROTOTYPEinstallPrimaryBytecodeSet: aBytecodeEncoderSubclass
+ 	PrimaryBytecodeSetEncoderClass == aBytecodeEncoderSubclass ifTrue:
+ 		[^self].
+ 	(aBytecodeEncoderSubclass inheritsFrom: BytecodeEncoder) ifFalse:
+ 		[self error: 'A bytecode set encoder is expected to be a subclass of BytecodeEncoder'].
+ 	(self allSubInstances
+ 			detect: [:m| m header >= 0 and: [m encoderClass ~~ aBytecodeEncoderSubclass]]
+ 			ifNone: []) ifNotNil:
+ 		[Warning signal: 'There are existing CompiledMethods with a different encoderClass.'].
+ 	PrimaryBytecodeSetEncoderClass := aBytecodeEncoderSubclass!

Item was added:
+ ----- Method: CompiledMethod class>>CompiledMethodclassPROTOTYPEinstallSecondaryBytecodeSet: (in category '*Cog-method prototypes') -----
+ CompiledMethodclassPROTOTYPEinstallSecondaryBytecodeSet: aBytecodeEncoderSubclass
+ 	PrimaryBytecodeSetEncoderClass == aBytecodeEncoderSubclass ifTrue:
+ 		[^self].
+ 	(aBytecodeEncoderSubclass inheritsFrom: BytecodeEncoder) ifFalse:
+ 		[self error: 'A bytecode set encoder is expected to be a subclass of BytecodeEncoder'].
+ 	(self allSubInstances
+ 			detect: [:m| m header < 0 and: [m encoderClass ~~ aBytecodeEncoderSubclass]]
+ 			ifNone: []) ifNotNil:
+ 		[Warning signal: 'There are existing CompiledMethods with a different encoderClass.'].
+ 	SecondaryBytecodeSetEncoderClass := aBytecodeEncoderSubclass!

Item was added:
+ ----- Method: SpurBootstrap class>>CompiledMethodclassPROTOTYPEinstallPrimaryBytecodeSet: (in category 'method prototypes') -----
+ CompiledMethodclassPROTOTYPEinstallPrimaryBytecodeSet: aBytecodeEncoderSubclass
+ 	<indirect>!

Item was added:
+ ----- Method: SpurBootstrap class>>CompiledMethodclassPROTOTYPEinstallSecondaryBytecodeSet: (in category 'method prototypes') -----
+ CompiledMethodclassPROTOTYPEinstallSecondaryBytecodeSet: aBytecodeEncoderSubclass
+ 	<indirect>!



More information about the Vm-dev mailing list