Skip to content

Commit

Permalink
Fixing the declaration of variables
Browse files Browse the repository at this point in the history
  • Loading branch information
tesonep committed Aug 1, 2023
1 parent fe43b0d commit 913dfbb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions smalltalksrc/VMMaker/Cogit.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -486,17 +486,15 @@ Cogit class >> cogToBytecodeMethodMapping [
Cogit class >> declareCVarsIn: aCCodeGenerator [

#( 'coInterpreter' 'objectMemory' 'methodZone' 'objectRepresentation'
'cogBlockMethodSurrogateClass' 'cogMethodSurrogateClass'
'cogMethodSurrogateClass'
'processor' 'lastNInstructions' 'simulatedAddresses'
'simulatedTrampolines' 'simulatedVariableGetters'
'simulatedVariableSetters' 'printRegisters' 'printInstructions'
'clickConfirm' 'singleStep' ) do: [
:simulationVariableNotNeededForRealVM |
aCCodeGenerator removeVariable: simulationVariableNotNeededForRealVM ].
#( 'selfSendTrampolines' 'dynamicSuperSendTrampolines'
'implicitReceiverSendTrampolines'
'outerSendTrampolines' 'ceEnclosingObjectTrampoline'
'numIRCs' 'indexOfIRC' 'theIRCs' ) do: [
#( 'dynamicSuperSendTrampolines'
'ceEnclosingObjectTrampoline') do: [
:variableNotNeededInNormalVM |
aCCodeGenerator removeVariable: variableNotNeededInNormalVM ].

Expand Down

0 comments on commit 913dfbb

Please sign in to comment.