From 748dbec77af83bf3369d7f08fc5bfa02501b249d Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 18 Nov 2018 13:14:41 +0100 Subject: [PATCH] - improve dumpjit output slightly --- src/scripting/vm/jit.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/scripting/vm/jit.cpp b/src/scripting/vm/jit.cpp index 6c90b5af3..b8b7240a1 100644 --- a/src/scripting/vm/jit.cpp +++ b/src/scripting/vm/jit.cpp @@ -383,10 +383,13 @@ asmjit::CCFunc *JitCompiler::Codegen() int i = (int)(ptrdiff_t)(pc - sfunc->Code); op = pc->op; - FString lineinfo; - lineinfo.Format("; line %d: %02x%02x%02x%02x %s", sfunc->PCToLine(pc), pc->op, pc->a, pc->b, pc->c, OpNames[op]); - cc.comment("", 0); - cc.comment(lineinfo.GetChars(), lineinfo.Len()); + if (op != OP_PARAM && op != OP_PARAMI && op != OP_VTBL) + { + FString lineinfo; + lineinfo.Format("; line %d: %02x%02x%02x%02x %s", sfunc->PCToLine(pc), pc->op, pc->a, pc->b, pc->c, OpNames[op]); + cc.comment("", 0); + cc.comment(lineinfo.GetChars(), lineinfo.Len()); + } labels[i].cursor = cc.getCursor(); ResetTemp();