diff options
author | Takashi Kokubun <[email protected]> | 2020-04-06 02:00:22 -0700 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2020-04-06 02:00:23 -0700 |
commit | b66d7d9be56c27bc1b6ff5a6d8f0ca23de7ed28a (patch) | |
tree | 18f83a682bda96c8de4d4481e5ae1e3049924467 /tool/ruby_vm | |
parent | 3194cd36e284bc761b378cbe065538c8d94da8df (diff) |
Remove unused variable stack_size
_mjit_compile_send.erb doesn't use _mjit_compile_insn_body.erb
Diffstat (limited to 'tool/ruby_vm')
-rw-r--r-- | tool/ruby_vm/views/_mjit_compile_send.erb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tool/ruby_vm/views/_mjit_compile_send.erb b/tool/ruby_vm/views/_mjit_compile_send.erb index a5db6e7f44..0e033a4ebe 100644 --- a/tool/ruby_vm/views/_mjit_compile_send.erb +++ b/tool/ruby_vm/views/_mjit_compile_send.erb @@ -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); |