1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Remove unused variable stack_size

_mjit_compile_send.erb doesn't use _mjit_compile_insn_body.erb
This commit is contained in:
Takashi Kokubun 2020-04-06 02:00:22 -07:00
parent 3194cd36e2
commit b66d7d9be5
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD

View file

@ -25,12 +25,7 @@
int param_size = iseq->body->param.size;
int sp_inc = (int)sp_inc_of_sendish(ci);
fprintf(f, "{\n");
% # JIT: Declare stack_size to be used in some macro of _mjit_compile_insn_body.erb
if (status->local_stack_p) {
fprintf(f, " MAYBE_UNUSED(unsigned int) stack_size = %u;\n", b->stack_size);
}
% # JIT: Invalidate call cache if it requires vm_search_method. This allows to inline some of following things.
fprintf(f, " const struct rb_callcache *cc = (const struct rb_callcache *)0x%"PRIxVALUE";\n", (VALUE)captured_cc);