summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-12 15:35:12 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-12 16:55:00 +1000
commitef9caa4af6a55e12a3a7d58fde7159965b7bf749 (patch)
tree15a1283e12505e40f3941785cbf97a3e74c49b11 /src
parent6e0acf1e915dc1c12363884874ab5d3c596ca486 (diff)
downloadfengari-ef9caa4af6a55e12a3a7d58fde7159965b7bf749.tar.gz
fengari-ef9caa4af6a55e12a3a7d58fde7159965b7bf749.tar.bz2
fengari-ef9caa4af6a55e12a3a7d58fde7159965b7bf749.zip
Remove unused L.ciOff/L.nci fields
Diffstat (limited to 'src')
-rw-r--r--src/ldo.js1
-rw-r--r--src/lstate.js3
-rw-r--r--src/lvm.js1
3 files changed, 0 insertions, 5 deletions
diff --git a/src/ldo.js b/src/ldo.js
index f7a8d8f..7ee9582 100644
--- a/src/ldo.js
+++ b/src/ldo.js
@@ -114,7 +114,6 @@ const luaD_poscall = function(L, ci, firstResult, nres) {
let res = ci.funcOff;
L.ci = ci.previous;
L.ci.next = null;
- L.ciOff--;
return moveresults(L, firstResult, res, nres, wanted);
};
diff --git a/src/lstate.js b/src/lstate.js
index 73fb310..3865ae5 100644
--- a/src/lstate.js
+++ b/src/lstate.js
@@ -47,7 +47,6 @@ class lua_State {
this.base_ci = new CallInfo(); // Will be populated later
this.top = 0;
this.ci = null;
- this.ciOff = null;
this.stack = [];
this.openupval = null;
this.status = TS.LUA_OK;
@@ -80,7 +79,6 @@ const luaE_extendCI = function(L) {
ci.previous = L.ci;
ci.next = null;
L.ci = ci;
- L.ciOff++;
return ci;
};
@@ -135,7 +133,6 @@ const preinit_thread = function(L, g) {
L.l_G = g;
L.stack = null;
L.ci = null;
- L.nci = 0;
L.errorJmp = null;
L.nCcalls = 0;
L.hook = null;
diff --git a/src/lvm.js b/src/lvm.js
index fb32c91..816452c 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -495,7 +495,6 @@ const luaV_execute = function(L) {
oci.callstatus |= lstate.CIST_TAIL;
oci.next = null;
ci = L.ci = oci;
- L.ciOff--;
assert(L.top === oci.l_base + L.stack[ofuncOff].value.p.maxstacksize);