Skip to content

Commit

Permalink
Remove unused InitializationOptions in #initializeBytecodeTable
Browse files Browse the repository at this point in the history
Only set the binding value for COGMTVM if it was actually found (this line was not removed since it is in a Pharo6-VM compatibility package).
  • Loading branch information
Hernán Morales Durand committed Mar 9, 2023
1 parent 4bfceaa commit 4e547b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 0 additions & 3 deletions smalltalksrc/VMMaker/StackInterpreter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,6 @@ StackInterpreter class >> initializeBytecodeTable [
VMBytecodeConstants falsifyBytecodeSetFlags: InitializationOptions.
BytecodeSetHasDirectedSuperSend := false.

(InitializationOptions at: #bytecodeTableInitializer ifAbsent: nil)
ifNotNil: [ :initalizer | ^ self perform: initalizer ].

^ self initializeBytecodeTableForSistaV1
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,15 +211,17 @@ PharoVMMaker >> vmMakerWith: interpreterClass memoryManager: memoryManager [

| platformDirectory |
VMMakerConfiguration initializeForPharo.
(interpreterClass bindingOf: #COGMTVM) value: false.

(interpreterClass bindingOf: #COGMTVM)
ifNotNil: [ : binding | binding value: false ].

platformDirectory := self platformDirectoryFor: memoryManager.


^ (VMMaker
makerFor: interpreterClass
and: StackToRegisterMappingCogit
with: {
with: {
#COGMTVM.
false.
#ObjectMemory.
Expand Down

0 comments on commit 4e547b7

Please sign in to comment.