From cb3d5dce30089512085f78a0bef79e30ef732e30 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 24 Apr 2017 17:26:39 -0300 Subject: opcodes 'OP_GETTABUP'/'OP_SETTABUP' operate only with string keys, so they can use fast-track table access --- lopcodes.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lopcodes.h') diff --git a/lopcodes.h b/lopcodes.h index afb9205a..ed3ea66d 100644 --- a/lopcodes.h +++ b/lopcodes.h @@ -1,5 +1,5 @@ /* -** $Id: lopcodes.h,v 1.149 2016/07/19 17:12:21 roberto Exp roberto $ +** $Id: lopcodes.h,v 1.150 2017/04/20 19:53:55 roberto Exp roberto $ ** Opcodes for Lua virtual machine ** See Copyright Notice in lua.h */ @@ -255,6 +255,8 @@ OP_EXTRAARG/* Ax extra (larger) argument for previous opcode */ (*) In OP_LOADKX, the next 'instruction' is always EXTRAARG. + (*) In OP_GETTABUP, OP_SETTABUP, and OP_SELF, the index must be a string. + (*) For comparisons, A specifies what condition the test should accept (true or false). -- cgit v1.2.3-55-g6feb