From 7de17e1f67ec8da30d19450f6de05c8b5ad6e10e Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 5 May 2017 14:19:17 +1000 Subject: Remove .twups field It's used to track threads that should be traversed by the GC to find upvalues --- src/lfunc.js | 2 -- src/lstate.js | 3 --- 2 files changed, 5 deletions(-) diff --git a/src/lfunc.js b/src/lfunc.js index 69c7581..e038cc0 100644 --- a/src/lfunc.js +++ b/src/lfunc.js @@ -82,8 +82,6 @@ const findupval = function(L, level) { uv.v = level; - // Thread with upvalue list business ? lfunc.c:75 - return uv; }; diff --git a/src/lstate.js b/src/lstate.js index d389419..51688e0 100644 --- a/src/lstate.js +++ b/src/lstate.js @@ -54,7 +54,6 @@ class lua_State { this.openupval = null; this.status = TS.LUA_OK; this.next = null; - this.twups = [this]; this.errorJmp = null; this.nny = 1; this.errfunc = 0; @@ -71,7 +70,6 @@ class global_State { this.l_registry = new lobject.TValue(CT.LUA_TNIL, null); this.panic = null; this.version = null; - this.twups = []; this.mt = new Array(LUA_NUMTAGS); } @@ -131,7 +129,6 @@ const preinit_thread = function(L, g) { L.stack = []; L.ci = null; L.nci = 0; - L.twups = [L]; /* thread has no upvalues */ L.errorJmp = null; L.nCcalls = 0; L.hook = null; -- cgit v1.2.3-70-g09d2