diff options
author | daurnimator <quae@daurnimator.com> | 2017-06-18 20:02:28 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-06-18 20:02:28 +1000 |
commit | fb7c8c189b7a864f5787a5ecfd3272fe0e99b0ad (patch) | |
tree | 3d9e303fdb1957e38f365b89b2437c2e3b7e497c /src/lvm.js | |
parent | 2637c343c1f0dbd79d5f593ef86272ba83d454c8 (diff) | |
download | fengari-fb7c8c189b7a864f5787a5ecfd3272fe0e99b0ad.tar.gz fengari-fb7c8c189b7a864f5787a5ecfd3272fe0e99b0ad.tar.bz2 fengari-fb7c8c189b7a864f5787a5ecfd3272fe0e99b0ad.zip |
src/lvm.js: Rename gettable to luaV_gettable
Diffstat (limited to 'src/lvm.js')
-rw-r--r-- | src/lvm.js | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -156,13 +156,13 @@ const luaV_execute = function(L) { case OCi.OP_GETTABUP: { let upval = cl.upvals[i.B].v; let rc = RKC(L, base, k, i); - gettable(L, upval, rc, ra); + luaV_gettable(L, upval, rc, ra); break; } case OCi.OP_GETTABLE: { let rb = L.stack[RB(L, base, i)]; let rc = RKC(L, base, k, i); - gettable(L, rb, rc, ra); + luaV_gettable(L, rb, rc, ra); break; } case OCi.OP_SETTABUP: { @@ -193,8 +193,7 @@ const luaV_execute = function(L) { let rb = RB(L, base, i); let rc = RKC(L, base, k, i); lobject.setobjs2s(L, ra + 1, rb); - - gettable(L, L.stack[rb], rc, ra); + luaV_gettable(L, L.stack[rb], rc, ra); break; } case OCi.OP_ADD: { @@ -976,7 +975,7 @@ const luaV_concat = function(L, total) { const MAXTAGLOOP = 2000; -const gettable = function(L, t, key, ra) { +const luaV_gettable = function(L, t, key, ra) { for (let loop = 0; loop < MAXTAGLOOP; loop++) { let tm; @@ -1042,7 +1041,7 @@ const settable = function(L, t, key, val) { module.exports.cvt2str = cvt2str; module.exports.cvt2num = cvt2num; -module.exports.gettable = gettable; +module.exports.luaV_gettable = luaV_gettable; module.exports.luaV_concat = luaV_concat; module.exports.luaV_div = luaV_div; module.exports.luaV_equalobj = luaV_equalobj; |