Mercurial > hg > Members > anatofuz > MoarVM
changeset 53:00bd9b3e6d86
use trace_cbc_mode
author | anatofuz |
---|---|
date | Wed, 12 Dec 2018 18:21:48 +0900 |
parents | 0eaa19833fe4 |
children | 55dc893b653f |
files | src/core/cbc-interp.cbc src/core/interp.c src/main.c |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/cbc-interp.cbc Tue Dec 11 15:04:06 2018 +0900 +++ b/src/core/cbc-interp.cbc Wed Dec 12 18:21:48 2018 +0900 @@ -57,7 +57,7 @@ static int tracing_enabled = 0; static int op_count=0; -static int cbc_trace=0; +int cbc_trace=0; // #define ddd(x) printf("count=%d op=%d cur_op=%p reg[0]=%p reg[2]=%p \n", op_count++, *i->cur_op, i->cur_op, GET_REG(i->cur_op, 0,i).o, GET_REG(i->cur_op, 2,i).o) #define ddd(x) ((op_count++,cbc_trace)?printf("count=%d op=%d\n", op_count, *(MVMuint16 *)i->cur_op):0)
--- a/src/core/interp.c Tue Dec 11 15:04:06 2018 +0900 +++ b/src/core/interp.c Wed Dec 12 18:21:48 2018 +0900 @@ -62,7 +62,7 @@ int use_cbc = 0; int op_count = 0; -int cbc_trace = 0; +extern int cbc_trace; extern void MVM_interp_run_cbc(MVMThreadContext *tc); /* This is the interpreter run loop. We have one of these per thread. */
--- a/src/main.c Tue Dec 11 15:04:06 2018 +0900 +++ b/src/main.c Wed Dec 12 18:21:48 2018 +0900 @@ -133,7 +133,7 @@ return OPT_DEBUGPORT; else if (starts_with(arg, "--cbc")) return OPT_CBC; - else if (starts_with(arg, "--cbc-trace")) + else if (starts_with(arg, "--trace-cbc")) return OPT_CBC_TRACE; else return UNKNOWN_FLAG;