[Vm-dev] VM Maker: VMMaker.oscog-mt.3177.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Apr 6 14:13:45 UTC 2022


Marcel Taeumel uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/VMMaker.oscog-mt.3177.mcz

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

Name: VMMaker.oscog-mt.3177
Author: mt
Time: 6 April 2022, 4:13:28.572017 pm
UUID: cdab6d73-9309-3945-8f5d-3a13e4966ded
Ancestors: VMMaker.oscog-mt.3176

Fixes definition of struct BytecodeFixup for generated Lowcode sources to make them compile again without having to define 'LowcodeVM=1' during compilation.

See its use in #ensureFixupAt: where it is clearly a configuration of the code generator and not an #ifdef that can be changed during compilation. Luckily, there are no other variation points in "platforms/**" like we have for PharoVM or NewspeakVM.

=============== Diff against VMMaker.oscog-mt.3176 ===============

Item was changed:
  ----- Method: CogSSBytecodeFixup class>>filteredInstVarNames (in category 'translation') -----
  filteredInstVarNames
+ 	"Override to guard LowcodeVM-specific native stack info, and to put
- 	"Override to add ifdef LowcodeVM around the native stack info, and to put
  	 char vars before short vars.
  	 self typedef"
  	| vars |
  	vars := super filteredInstVarNames asOrderedCollection.
  	vars
  		remove: 'instructionIndex';
  			add: 'instructionIndex' afterIndex: (vars indexOf: 'simStackPtr');
  		remove: 'isTargetOfBackwardBranch';
+ 			add: 'isTargetOfBackwardBranch' afterIndex: (vars indexOf: 'simStackPtr').
+ 	LowcodeVM ifFalse:
+ 		[vars remove: 'simNativeStackPtr'; remove: 'simNativeStackSize'].
- 			add: 'isTargetOfBackwardBranch' afterIndex: (vars indexOf: 'simStackPtr');
- 		add: '#if LowcodeVM' beforeIndex: (vars indexOf: 'simNativeStackPtr');
- 		add: '#endif' afterIndex: (vars indexOf: 'simNativeStackSize').
  	^vars!



More information about the Vm-dev mailing list