1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-05-05 07:44:20 +00:00

Eliminate extra gotos in common branch tail code (#528)

The implementation of various JUMP opcodes tried to use a common tail
that did a POP and branched to the next opcode. While the extra gotos
probably aren't harmful, neither are they beneficial to code size or speed.
This commit is contained in:
Nick Briggs
2025-01-30 11:07:29 -08:00
committed by GitHub
parent 04f9905ca0
commit 511a1b523e
2 changed files with 6 additions and 18 deletions

View File

@@ -217,7 +217,7 @@
#define FJUMPMACRO(x) \
do { \
if (TOPOFSTACK != 0) { goto PopNextop1; } \
if (TOPOFSTACK != 0) { POP; nextop1; } \
{ \
CHECK_INTERRUPT; \
POP; \
@@ -227,7 +227,7 @@
} while (0)
#define TJUMPMACRO(x) \
do { \
if (TOPOFSTACK == 0) { goto PopNextop1; } \
if (TOPOFSTACK == 0) { POP; nextop1; } \
{ \
CHECK_INTERRUPT; \
POP; \