summaryrefslogtreecommitdiff
path: root/mjit_compile.c
diff options
context:
space:
mode:
authork0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-30 02:22:00 (GMT)
committerk0kubun <k0kubun@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-30 02:22:00 (GMT)
commitd7ea94fbb689863dd1d61c026c65b8c4cea8f193 (patch)
tree33450718ea176e5ac25f4aa732de196df8c85f88 /mjit_compile.c
parentef69efef1da9a36d0953fdb0651faf881531781a (diff)
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
Diffstat (limited to 'mjit_compile.c')
-rw-r--r--mjit_compile.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/mjit_compile.c b/mjit_compile.c
index 7cc1a3c..21658c4 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)