From d7ea94fbb689863dd1d61c026c65b8c4cea8f193 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Sun, 30 Sep 2018 02:22:00 +0000 Subject: mjit_compile.c: improve assertion message intentionally inserting tab to this line to test svn bot. Also expanding the all tabs in this file, since this file does not exist in old versions and so there's no risk of conflict on backport. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- mjit_compile.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'mjit_compile.c') diff --git a/mjit_compile.c b/mjit_compile.c index 7cc1a3ca24..21658c4adc 100644 --- a/mjit_compile.c +++ b/mjit_compile.c @@ -97,12 +97,12 @@ comment_id(FILE *f, ID id) e = RSTRING_END(name); fputs("/* :\"", f); for (; p < e; ++p) { - switch (c = *p) { - case '*': case '/': if (prev != (c ^ ('/' ^ '*'))) break; - case '\\': case '"': fputc('\\', f); - } - fputc(c, f); - prev = c; + switch (c = *p) { + case '*': case '/': if (prev != (c ^ ('/' ^ '*'))) break; + case '\\': case '"': fputc('\\', f); + } + fputc(c, f); + prev = c; } fputs("\" */", f); #endif @@ -168,7 +168,7 @@ compile_insns(FILE *f, const struct rb_iseq_constant_body *body, unsigned int st pos = compile_insn(f, body, insn, body->iseq_encoded + (pos+1), pos, status, &branch); if (status->success && branch.stack_size > body->stack_max) { if (mjit_opts.warnings || mjit_opts.verbose) - fprintf(stderr, "MJIT warning: JIT stack exceeded its max\n"); + fprintf(stderr, "MJIT warning: JIT stack size (%d) exceeded its max size (%d)\n", branch.stack_size, body->stack_max); status->success = FALSE; } if (!status->success) -- cgit v1.2.1