From 6e9b719694bffb8de711f182d405ec37d32ae0b1 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 26 Oct 2018 10:38:50 -0300 Subject: More uniformity in code generation for 'for' loops Added new instruction 'OP_TFORPREP' to prepare a generic for loop. Currently it is equivalent to a jump (but with a format 'iABx', similar to other for-loop preparing instructions), but soon it will be the place to create upvalues for closing loop states. --- lopnames.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lopnames.h') diff --git a/lopnames.h b/lopnames.h index 304d3b6c..b2c4fe21 100644 --- a/lopnames.h +++ b/lopnames.h @@ -81,6 +81,7 @@ static const char *const opnames[] = { "FORPREP1", "FORLOOP", "FORPREP", + "TFORPREP", "TFORCALL", "TFORLOOP", "SETLIST", -- cgit v1.2.3-55-g6feb