comparison src/vim9execute.c @ 33181:ea3f1e0ee5f3 v9.0.1870

patch 9.0.1870: Vim9: disassamble does not show static Commit: https://github.com/vim/vim/commit/00df69e62b2233d758f8c988794d66d53e887260 Author: Ernie Rael <errael@raelity.com> Date: Tue Sep 5 07:38:09 2023 +0200 patch 9.0.1870: Vim9: disassamble does not show static Problem: Vim9: disassamble does not show static Solution: Show static flag Fix disassemble for instructions with optional static: ISN_GET_OBJ_MEMBER and ISN_GET_ITF_MEMBER closes: #13030 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ernie Rael <errael@raelity.com>
author Christian Brabandt <cb@256bit.org>
date Tue, 05 Sep 2023 07:45:08 +0200
parents 9efd99a717c1
children 108d890d887f
comparison
equal deleted inserted replaced
33180:21bbe5d23739 33181:ea3f1e0ee5f3
7154 iptr->isn_arg.getitem.gi_with_op ? 7154 iptr->isn_arg.getitem.gi_with_op ?
7155 " with op" : ""); break; 7155 " with op" : ""); break;
7156 case ISN_MEMBER: smsg("%s%4d MEMBER", pfx, current); break; 7156 case ISN_MEMBER: smsg("%s%4d MEMBER", pfx, current); break;
7157 case ISN_STRINGMEMBER: smsg("%s%4d MEMBER %s", pfx, current, 7157 case ISN_STRINGMEMBER: smsg("%s%4d MEMBER %s", pfx, current,
7158 iptr->isn_arg.string); break; 7158 iptr->isn_arg.string); break;
7159 case ISN_GET_OBJ_MEMBER: smsg("%s%4d OBJ_MEMBER %d", pfx, current, 7159 case ISN_GET_OBJ_MEMBER: smsg("%s%4d OBJ_MEMBER %d%s", pfx, current,
7160 (int)iptr->isn_arg.number); break; 7160 (int)iptr->isn_arg.classmember.cm_idx,
7161 case ISN_GET_ITF_MEMBER: smsg("%s%4d ITF_MEMBER %d on %s", 7161 iptr->isn_arg.classmember.cm_static
7162 ? " [STATIC]" : "");
7163 break;
7164 case ISN_GET_ITF_MEMBER: smsg("%s%4d ITF_MEMBER %d on %s%s",
7162 pfx, current, 7165 pfx, current,
7163 (int)iptr->isn_arg.classmember.cm_idx, 7166 (int)iptr->isn_arg.classmember.cm_idx,
7164 iptr->isn_arg.classmember.cm_class->class_name); 7167 iptr->isn_arg.classmember.cm_class->class_name,
7168 iptr->isn_arg.classmember.cm_static
7169 ? " [STATIC]" : "");
7165 break; 7170 break;
7166 case ISN_STORE_THIS: smsg("%s%4d STORE_THIS %d", pfx, current, 7171 case ISN_STORE_THIS: smsg("%s%4d STORE_THIS %d", pfx, current,
7167 (int)iptr->isn_arg.number); break; 7172 (int)iptr->isn_arg.number); break;
7168 case ISN_CLEARDICT: smsg("%s%4d CLEARDICT", pfx, current); break; 7173 case ISN_CLEARDICT: smsg("%s%4d CLEARDICT", pfx, current); break;
7169 case ISN_USEDICT: smsg("%s%4d USEDICT", pfx, current); break; 7174 case ISN_USEDICT: smsg("%s%4d USEDICT", pfx, current); break;