Mercurial > hg > Members > anatofuz > MoarVM
changeset 44:47f12bb731b8
fix startup op
author | anatofuz |
---|---|
date | Fri, 30 Nov 2018 15:16:35 +0900 |
parents | f750745c94ab |
children | 6e8bd93cbb96 |
files | src/core/cbc-interp.cbc |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/cbc-interp.cbc Fri Nov 30 14:07:07 2018 +0900 +++ b/src/core/cbc-interp.cbc Fri Nov 30 15:16:35 2018 +0900 @@ -60,7 +60,7 @@ __code cbc_next(INTERP i){ __code (*c)(INTERP); - //printf("count=%d op=%d\n", op_count++, *i->cur_op); + printf("count=%d op=%d\n", op_count++, *i->cur_op); c = CODES[NEXT_OP(i)]; i->tc->gc_status=0; goto c(i); @@ -6453,7 +6453,7 @@ void MVM_interp_run1(INTERP i){ - goto (CODES[(i->op = *(MVMuint16 *)(i->cur_op), i->cur_op += 2, i->op)])(i); + goto (CODES[i->op])(i); }