summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lcode.js2
-rw-r--r--src/lvm.js1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lcode.js b/src/lcode.js
index f69bc34..7fd958e 100644
--- a/src/lcode.js
+++ b/src/lcode.js
@@ -359,7 +359,7 @@ const luaK_patchclose = function(fs, list, level) {
** line information. Return 'i' position.
*/
const luaK_code = function(fs, i) {
- console.log(OpCodes[i.opcode]);
+ // console.log(OpCodes[i.opcode]);
let f = fs.f;
dischargejpc(fs); /* 'pc' will change */
/* put new instruction in code array */
diff --git a/src/lvm.js b/src/lvm.js
index 0ff433e..75fe44c 100644
--- a/src/lvm.js
+++ b/src/lvm.js
@@ -128,6 +128,7 @@ const luaV_execute = function(L) {
if (i.breakpoint) // TODO: remove, used until lapi
return;
+ console.log(`> ${opcode}`);
switch (opcode) {
case "OP_MOVE": {
L.stack[ra] = L.stack[RB(L, base, i)];