diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-05 17:33:28 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-05 17:33:28 +1000 |
commit | 91be09a37c65b6b9247c7e3cdf4e189627226511 (patch) | |
tree | cdc17054b4b2c80cef6dfdaf21b0e713c8c05ef9 /src/ldebug.js | |
parent | de072f1a1819d6d4b41205dcc985b5d23bf9c43a (diff) | |
download | fengari-91be09a37c65b6b9247c7e3cdf4e189627226511.tar.gz fengari-91be09a37c65b6b9247c7e3cdf4e189627226511.tar.bz2 fengari-91be09a37c65b6b9247c7e3cdf4e189627226511.zip |
Flatten CallInfo union member
Diffstat (limited to 'src/ldebug.js')
-rw-r--r-- | src/ldebug.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ldebug.js b/src/ldebug.js index 910720f..fc5e378 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -87,7 +87,7 @@ const upvalname = function(p, uv) { const findvararg = function(ci, n) { let nparams = ci.func.value.p.numparams; - if (n >= ci.u.l.base - ci.funcOff - nparams) + if (n >= ci.l_base - ci.funcOff - nparams) return null; /* no such vararg */ else { return { @@ -104,7 +104,7 @@ const findlocal = function(L, ci, n) { if (n < 0) /* access to vararg values? */ return findvararg(ci, -n); else { - base = ci.u.l.base; + base = ci.l_base; name = lfunc.luaF_getlocalname(ci.func.value.p, n, ci.pcOff); } } else @@ -497,7 +497,7 @@ const funcnamefromcode = function(L, ci) { }; const isinstack = function(L, ci, o) { - for (let i = ci.u.l.base; i < ci.top; i++) { + for (let i = ci.l_base; i < ci.top; i++) { if (L.stack[i] === o) return i; } @@ -531,7 +531,7 @@ const varinfo = function(L, o) { kind = getupvalname(L, ci, o); /* check whether 'o' is an upvalue */ let stkid = isinstack(L, ci, o); if (!kind && stkid) /* no? try a register */ - kind = getobjname(ci.func.value.p, ci.pcOff, stkid - ci.u.l.base); + kind = getobjname(ci.func.value.p, ci.pcOff, stkid - ci.l_base); } return kind ? lobject.luaO_pushfstring(L, defs.to_luastring(" (%s '%s')", true), kind.funcname, kind.name) : defs.to_luastring("", true); @@ -633,7 +633,7 @@ const luaG_traceexec = function(L) { if (L.status === TS.LUA_YIELD) { /* did hook yield? */ if (counthook) L.hookcount = 1; /* undo decrement to zero */ - ci.u.l.savedpc--; /* undo increment (resume will increment it again) */ + ci.l_savedpc--; /* undo increment (resume will increment it again) */ ci.callstatus |= lstate.CIST_HOOKYIELD; /* mark that it yielded */ ci.func = L.top - 1; /* protect stack below results */ ldo.luaD_throw(L, TS.LUA_YIELD); |