From 41bb43d17c5a0cd8cce451e7dcd8ddbecb00d325 Mon Sep 17 00:00:00 2001 From: Paul Guyot Date: Wed, 23 Aug 2023 22:51:08 +0200 Subject: [PATCH] Remove dead code related to allocation list Signed-off-by: Paul Guyot --- src/libAtomVM/opcodesswitch.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/libAtomVM/opcodesswitch.h b/src/libAtomVM/opcodesswitch.h index 3ad711fc8..9c84ab431 100644 --- a/src/libAtomVM/opcodesswitch.h +++ b/src/libAtomVM/opcodesswitch.h @@ -121,6 +121,9 @@ typedef dreg_t dreg_unsafe_t; #endif +// This macro does not decode all cases but cases we actually observe in opcodes +// below. More specific decoding is performed when we know the type of the +// argument #define DECODE_COMPACT_TERM(dest_term, decode_pc) \ { \ uint8_t first_byte = *(decode_pc)++; \ @@ -173,11 +176,6 @@ typedef dreg_t dreg_unsafe_t; } \ break; \ } \ - case COMPACT_EXTENDED_ALLOCATION_LIST: { \ - uint8_t len = (*(decode_pc)++) >> 4; \ - (decode_pc) += (--len * 2); \ - break; \ - } \ case COMPACT_EXTENDED_TYPED_REGISTER: { \ uint8_t reg_byte = *(decode_pc)++; \ if (((reg_byte & 0x0F) != COMPACT_XREG) \