summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-05 14:19:17 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-05 14:21:43 +1000
commit7de17e1f67ec8da30d19450f6de05c8b5ad6e10e (patch)
tree84fbb4772172d5646405df4d2ae91ad7c32eeeaf
parentb0cdb074dcd474893c31783230127e795e676e58 (diff)
downloadfengari-7de17e1f67ec8da30d19450f6de05c8b5ad6e10e.tar.gz
fengari-7de17e1f67ec8da30d19450f6de05c8b5ad6e10e.tar.bz2
fengari-7de17e1f67ec8da30d19450f6de05c8b5ad6e10e.zip
Remove .twups field
It's used to track threads that should be traversed by the GC to find upvalues
-rw-r--r--src/lfunc.js2
-rw-r--r--src/lstate.js3
2 files changed, 0 insertions, 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;