Skip to content

Commit

Permalink
avoid shared cases
Browse files Browse the repository at this point in the history
  • Loading branch information
guillep committed Feb 8, 2024
1 parent 5ea66be commit eb4a738
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smalltalksrc/VMMaker/StackInterpreter.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2624,7 +2624,7 @@ StackInterpreter >> binarySmiCompInlinePrimitive: primIndex [
StackInterpreter >> booleanCheatFalseSistaV1 [
"cheat the interpreter out of the pleasure of handling the next bytecode IFF it is a jump-on-boolean. Which it is, often enough when the current bytecode is something like bytecodePrimEqual"

<sharedCodeInCase: #bytecodePrimGreaterThanSistaV1>
"<sharedCodeInCase: #bytecodePrimGreaterThanSistaV1>"
self druidIgnore: [
| bytecode offset |
bytecode := self fetchByte. "assume next bytecode is jumpIfFalse (99%)"
Expand Down Expand Up @@ -2659,7 +2659,7 @@ StackInterpreter >> booleanCheatSistaV1: cond [
StackInterpreter >> booleanCheatTrueSistaV1 [
"cheat the interpreter out of the pleasure of handling the next bytecode IFF it is a jump-on-boolean. Which it is, often enough when the current bytecode is something like bytecodePrimEqual"

<sharedCodeInCase: #bytecodePrimLessThanSistaV1>
"<sharedCodeInCase: #bytecodePrimLessThanSistaV1>"
self druidIgnore: [
| bytecode offset |
bytecode := self fetchByte. "assume next bytecode is jumpIfFalse (99%)"
Expand Down

0 comments on commit eb4a738

Please sign in to comment.