From: fennecdjay Date: Sat, 29 Oct 2022 11:02:21 +0000 (+0200) Subject: :art: remove AllocMemberAddr X-Git-Tag: nightly~207^2~97 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=ed2aae78a14888b22e593bb980165a5788f16116;p=gwion.git :art: remove AllocMemberAddr --- diff --git a/include/opcode.h b/include/opcode.h index 4aa75b97..6e251241 100644 --- a/include/opcode.h +++ b/include/opcode.h @@ -184,7 +184,6 @@ enum { eStructReleaseRegAddr, eStructReleaseMem, eGWOP_EXCEPT, - eAllocMember4, eDotMemberMem, eDotMemberMem2, eDotMemberMem4, @@ -401,7 +400,6 @@ enum { #define StructReleaseRegAddr (f_instr)eStructReleaseRegAddr #define StructReleaseMem (f_instr)eStructReleaseMem #define GWOP_EXCEPT (f_instr)eGWOP_EXCEPT -#define AllocMember4 (f_instr)eAllocMember4 #define DotMemberMem (f_instr)eDotMemberMem #define DotMemberMem2 (f_instr)eDotMemberMem2 #define DotMemberMem4 (f_instr)eDotMemberMem4 @@ -1280,11 +1278,6 @@ ANN static inline void dump_opcodes(const VM_Code code) { gw_out(" {-R}%-14"UINT_F"{0}", instr->m_val); gw_out("\n"); break; - case eAllocMember4: - gw_out("{Y}┃{0}{-}% 4lu{0}: AllocMember4", j); - gw_out(" {-R}%-14"UINT_F"{0}", instr->m_val); - gw_out("\n"); - break; case eDotMemberMem: gw_out("{Y}┃{0}{-}% 4lu{0}: DotMemberMem", j); gw_out(" {-R}%-14"UINT_F"{0}", instr->m_val); diff --git a/opcode.txt b/opcode.txt index 3ec53bb4..21a38eab 100644 --- a/opcode.txt +++ b/opcode.txt @@ -181,7 +181,6 @@ ObjectRelease2~p StructReleaseRegAddr~u~t StructReleaseMem~u~t GWOP_EXCEPT~u -AllocMember4~u DotMemberMem~u DotMemberMem2~u DotMemberMem4~u diff --git a/src/vm/vm.c b/src/vm/vm.c index ca32fd26..9386740e 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -460,7 +460,7 @@ vm_prepare(const VM *vm, m_bit *prepare_code) { // lgtm [cpp/use-of-goto] &&arraytop, &&arrayaccess, &&arrayget, &&arrayaddr, &&newobj, &&addref, &&addrefaddr, &&structaddref, &&structaddrefaddr, &&objassign, &&assign, &&_remref, &&_remref2, &&_structreleaseregaddr, &&structreleasemem, - &&_except, &&_allocmemberaddr, + &&_except, &&dotmembermem, &&dotmembermem2, /*&&dotmembermem3, */&&dotmembermem4, &&dotmember, &&dotfloat, &&dotother, &&dotaddr, &&unioncheck, &&unionint, &&unionfloat, @@ -1096,10 +1096,6 @@ vm_prepare(const VM *vm, m_bit *prepare_code) { // lgtm [cpp/use-of-goto] continue; } DISPATCH(); - allocmemberaddr: - *(m_bit **)reg = (*(M_Object *)mem)->data + VAL; - reg += SZ_INT; - DISPATCH() dotmembermem: *(m_uint *)reg = *(m_uint *)((*(M_Object *)(mem + VAL2))->data + VAL); @@ -1309,7 +1305,7 @@ static void *_dispatch[] = { &&_arraytop, &&_arrayaccess, &&_arrayget, &&_arrayaddr, &&_newobj, &&_addref, &&_addrefaddr, &&_structaddref, &&_structaddrefaddr, &&_objassign, &&_assign, &&_remref, &&_remref2, &&_structreleaseregaddr, &&_structreleasemem, - &&_except, &&_allocmemberaddr, + &&_except, &&_dotmembermem, &&_dotmembermem2, /*&&_dotmembermem3, */&&_dotmembermem4, &&_dotmember, &&_dotfloat, &&_dotother, &&_dotaddr, &&_unioncheck, &&_unionint, &&_unionfloat, @@ -1533,7 +1529,6 @@ return; PREPARE(structreleaseregaddr); PREPARE(structreleasemem); PREPARE(except); - PREPARE(allocmemberaddr); PREPARE(dotmembermem); PREPARE(dotmembermem2); //PREPARE(dotmembermem3);