mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Show what's inlined first in "JIT inline" log
and add a debug log
This commit is contained in:
parent
7982dc1dfd
commit
40b40523dc
2 changed files with 6 additions and 3 deletions
|
@ -459,10 +459,10 @@ precompile_inlinable_iseqs(FILE *f, const rb_iseq_t *iseq, struct compile_status
|
|||
|
||||
if (mjit_opts.verbose >= 1) // print beforehand because ISeq may be GCed during copy job.
|
||||
fprintf(stderr, "JIT inline: %s@%s:%d => %s@%s:%d\n",
|
||||
RSTRING_PTR(iseq->body->location.label),
|
||||
RSTRING_PTR(rb_iseq_path(iseq)), FIX2INT(iseq->body->location.first_lineno),
|
||||
RSTRING_PTR(child_iseq->body->location.label),
|
||||
RSTRING_PTR(rb_iseq_path(child_iseq)), FIX2INT(child_iseq->body->location.first_lineno));
|
||||
RSTRING_PTR(rb_iseq_path(child_iseq)), FIX2INT(child_iseq->body->location.first_lineno),
|
||||
RSTRING_PTR(iseq->body->location.label),
|
||||
RSTRING_PTR(rb_iseq_path(iseq)), FIX2INT(iseq->body->location.first_lineno));
|
||||
|
||||
struct compile_status child_status = { .compiled_iseq = status->compiled_iseq, .compiled_id = status->compiled_id };
|
||||
INIT_COMPILE_STATUS(child_status, child_iseq->body, false);
|
||||
|
|
|
@ -30,6 +30,9 @@
|
|||
&& fastpath_applied_iseq_p(ci, captured_cc, iseq = def_iseq_ptr(vm_cc_cme(captured_cc)->def))
|
||||
&& !(vm_ci_flag(ci) & VM_CALL_TAILCALL))
|
||||
)) {
|
||||
if (false && vm_cc_cme(captured_cc)->def->type == VM_METHOD_TYPE_CFUNC)
|
||||
fprintf(stderr, " * %s\n", rb_id2name(vm_ci_mid(ci)));
|
||||
|
||||
int sp_inc = (int)sp_inc_of_sendish(ci);
|
||||
fprintf(f, "{\n");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue