mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
'invalidateTMcache' not needed in all 'settable' uses
This commit is contained in:
parent
3b795541c4
commit
8f25d08637
3 changed files with 7 additions and 6 deletions
7
lvm.h
7
lvm.h
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
** $Id: lvm.h,v 2.36 2015/07/20 18:24:50 roberto Exp roberto $
|
||||
** $Id: lvm.h,v 2.37 2015/08/03 19:50:49 roberto Exp roberto $
|
||||
** Lua virtual machine
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
|
|
@ -75,12 +75,11 @@
|
|||
? (aux = NULL, 0) \
|
||||
: (aux = f(hvalue(t), k), \
|
||||
ttisnil(aux) ? 0 \
|
||||
: (invalidateTMcache(hvalue(t)), \
|
||||
luaC_barrierback(L, hvalue(t), v), 1)))
|
||||
: (luaC_barrierback(L, hvalue(t), v), 1)))
|
||||
|
||||
#define luaV_settable(L,t,k,v) { const TValue *aux; \
|
||||
if (luaV_fastset(L,t,k,aux,luaH_get,v)) \
|
||||
{ setobj2t(L, cast(TValue *,aux), v); } \
|
||||
{ invalidateTMcache(hvalue(t)); setobj2t(L, cast(TValue *,aux), v); } \
|
||||
else luaV_finishset(L,t,k,v,aux); }
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue