зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
ef69efef1d
Коммит
d7ea94fbb6
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче