aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-02-07 13:18:04 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-02-07 13:18:04 -0200
commit318a9a5859826d7af0294664e206236fc8814319 (patch)
tree31a00af286880036e5ef165fbbdaf7df9a04cfc1 /lopcodes.h
parent73d797ce7ea4c547cb97e39633a71a242c7356c8 (diff)
downloadlua-318a9a5859826d7af0294664e206236fc8814319.tar.gz
lua-318a9a5859826d7af0294664e206236fc8814319.tar.bz2
lua-318a9a5859826d7af0294664e206236fc8814319.zip
new opcode 'PREPVARARG'
(avoids test for vararg function in all function calls)
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 31bd12f8..47c72c69 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -288,6 +288,8 @@ OP_CLOSURE,/* A Bx R(A) := closure(KPROTO[Bx]) */
288 288
289OP_VARARG,/* A B C R(A), R(A+1), ..., R(A+C-2) = vararg(B) */ 289OP_VARARG,/* A B C R(A), R(A+1), ..., R(A+C-2) = vararg(B) */
290 290
291OP_PREPVARARG,/*A (adjust vararg parameters) */
292
291OP_EXTRAARG/* Ax extra (larger) argument for previous opcode */ 293OP_EXTRAARG/* Ax extra (larger) argument for previous opcode */
292} OpCode; 294} OpCode;
293 295