ruby-changes:60671
From: Takashi <ko1@a...>
Date: Mon, 6 Apr 2020 18:01:01 +0900 (JST)
Subject: [ruby-changes:60671] b66d7d9be5 (master): Remove unused variable stack_size
https://git.ruby-lang.org/ruby.git/commit/?id=b66d7d9be5 From b66d7d9be56c27bc1b6ff5a6d8f0ca23de7ed28a Mon Sep 17 00:00:00 2001 From: Takashi Kokubun <takashikkbn@g...> Date: Mon, 6 Apr 2020 02:00:22 -0700 Subject: Remove unused variable stack_size _mjit_compile_send.erb doesn't use _mjit_compile_insn_body.erb diff --git a/tool/ruby_vm/views/_mjit_compile_send.erb b/tool/ruby_vm/views/_mjit_compile_send.erb index a5db6e7..0e033a4 100644 --- a/tool/ruby_vm/views/_mjit_compile_send.erb +++ b/tool/ruby_vm/views/_mjit_compile_send.erb @@ -25,12 +25,7 @@ https://github.com/ruby/ruby/blob/trunk/tool/ruby_vm/views/_mjit_compile_send.erb#L25 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); -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/