From aeb63ade341572bb307f23ff7c501c48957cc7d4 Mon Sep 17 00:00:00 2001 From: Mel Date: Wed, 31 Aug 2022 14:22:28 +0000 Subject: Remove temporary array operations --- pkg/lang/vm/text/decompiler.go | 4 +--- pkg/lang/vm/text/op.go | 3 --- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'pkg/lang/vm/text') diff --git a/pkg/lang/vm/text/decompiler.go b/pkg/lang/vm/text/decompiler.go index ed48412..ba08f1c 100644 --- a/pkg/lang/vm/text/decompiler.go +++ b/pkg/lang/vm/text/decompiler.go @@ -78,9 +78,7 @@ func (d *Decompiler) decompileInstruction(bc code.Raw) (string, code.Raw) { code.OpGte, code.OpIndex, code.OpSetAtIndex, - code.OpRet, - code.OpTempArrLen, - code.OpTempArrPush: + code.OpRet: return opString, bc[1:] // Operations that take an int. diff --git a/pkg/lang/vm/text/op.go b/pkg/lang/vm/text/op.go index 213656b..d94ff1b 100644 --- a/pkg/lang/vm/text/op.go +++ b/pkg/lang/vm/text/op.go @@ -46,9 +46,6 @@ var ( code.OpJt: "jt", code.OpJf: "jf", code.OpRet: "ret", - - code.OpTempArrPush: "temp_arr_push", - code.OpTempArrLen: "temp_arr_len", } stringToOp = reverseMap(opToString) ) -- cgit 1.4.1