From b91bc93fd33f2158745b37c9e091c6fa4d1a4fd5 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 9 Sep 2015 10:44:07 -0300 Subject: 'setobj2t' incorporated into 'luaV_fastset' + 'invalidateTMcache' is not needed in the fast track (as it does not create new entries) --- lvm.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lvm.c') diff --git a/lvm.c b/lvm.c index 59f36e3a..25dc40f2 100644 --- a/lvm.c +++ b/lvm.c @@ -1,5 +1,5 @@ /* -** $Id: lvm.c,v 2.250 2015/08/03 20:40:26 roberto Exp roberto $ +** $Id: lvm.c,v 2.251 2015/09/08 15:41:05 roberto Exp roberto $ ** Lua virtual machine ** See Copyright Notice in lua.h */ @@ -216,11 +216,8 @@ void luaV_finishset (lua_State *L, const TValue *t, TValue *key, return; } t = tm; /* else repeat assignment over 'tm' */ - if (luaV_fastset(L, t, key, oldval, luaH_get, val)) { - invalidateTMcache(hvalue(t)); - setobj2t(L, cast(TValue *, oldval), val); - return; - } + if (luaV_fastset(L, t, key, oldval, luaH_get, val)) + return; /* done */ /* else loop */ } luaG_runerror(L, "settable chain too long; possible loop"); -- cgit v1.2.3-55-g6feb