diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-04-14 08:59:00 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-04-14 11:06:19 +0200 |
commit | 43c97cbc2904d2bac87c61515bbc16c38a091548 (patch) | |
tree | 31dee0450518dc6a6aebd913e450bcd8ed4131b2 /src/lvm.js | |
parent | fd613ef1da5e3eeb10d13351ccf217e33b30b1dd (diff) | |
download | fengari-43c97cbc2904d2bac87c61515bbc16c38a091548.tar.gz fengari-43c97cbc2904d2bac87c61515bbc16c38a091548.tar.bz2 fengari-43c97cbc2904d2bac87c61515bbc16c38a091548.zip |
hooks
Diffstat (limited to 'src/lvm.js')
-rw-r--r-- | src/lvm.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -123,8 +123,15 @@ const luaV_execute = function(L) { base = ci.u.l.base; i = ci.u.l.savedpc[ci.pcOff++]; + + if (L.hookmask & (lua.LUA_MASKLINE | lua.LUA_MASKCOUNT)) { + ldebug.luaG_traceexec(L); + base = ci.u.l.base; + } + + ra = RA(L, base, i); - opcode = i.opcode + opcode = i.opcode; } if (i.breakpoint) // TODO: remove, used until lapi |