From 38b0e6128da7796300e2e8621e87835e16539f5b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 5 Feb 2002 20:39:12 -0200 Subject: simpler implementation for `for' loops --- lopcodes.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lopcodes.h') diff --git a/lopcodes.h b/lopcodes.h index f8db57cf..e72ac0cd 100644 --- a/lopcodes.h +++ b/lopcodes.h @@ -169,10 +169,7 @@ OP_TESTF,/* A B if not (R(B)) then R(A) := R(B) else pc++ */ OP_CALL,/* A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1))*/ OP_RETURN,/* A B return R(A), ... ,R(A+B-2) (see (3)) */ -OP_FORPREP,/* A sBc */ OP_FORLOOP,/* A sBc */ - -OP_TFORPREP,/* A sBc */ OP_TFORLOOP,/* A sBc */ OP_SETLIST,/* A Bc R(A)[Bc-Bc%FPF+i] := R(A+i), 1 <= i <= Bc%FPF+1 */ @@ -206,7 +203,8 @@ enum OpModeMask { OpModeCreg, /* C is a register/constant */ OpModesetA, /* instruction set register A */ OpModeK, /* Bc is a constant */ - OpModeT /* operator is a test */ + OpModeT, /* operator is a test */ + OpModeNoTrace /* operator should not be traced */ }; extern const lu_byte luaP_opmodes[NUM_OPCODES]; -- cgit v1.2.3-55-g6feb