aboutsummaryrefslogtreecommitdiff
path: root/lopnames.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-10-26 10:38:50 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-10-26 10:38:50 -0300
commit6e9b719694bffb8de711f182d405ec37d32ae0b1 (patch)
tree943fcd9aacd2f7845acfd955e1bb0a9607576fa4 /lopnames.h
parent34840301b529686ce8168828b140a478a5d44b53 (diff)
downloadlua-6e9b719694bffb8de711f182d405ec37d32ae0b1.tar.gz
lua-6e9b719694bffb8de711f182d405ec37d32ae0b1.tar.bz2
lua-6e9b719694bffb8de711f182d405ec37d32ae0b1.zip
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.
Diffstat (limited to 'lopnames.h')
-rw-r--r--lopnames.h1
1 files changed, 1 insertions, 0 deletions
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[] = {
81 "FORPREP1", 81 "FORPREP1",
82 "FORLOOP", 82 "FORLOOP",
83 "FORPREP", 83 "FORPREP",
84 "TFORPREP",
84 "TFORCALL", 85 "TFORCALL",
85 "TFORLOOP", 86 "TFORLOOP",
86 "SETLIST", 87 "SETLIST",