Peephole optimizations: adding `opt_respond_to` to the Ruby VM, part 4

In The Ruby Syntax Holy Grail: adding opt_respond_to to the Ruby VM, part 3 , I found what I referred to as the &ldquo;Holy Grail&rdquo; of Ruby syntax. I&rsquo;m way overstating it, but it&rsquo;s a readable, sequential way of viewing how a large portion of the Ruby syntax is compiled. Here&rsquo;s a snippet of it as a reminder: // prism_compile.c static void pm_compile_node (rb_iseq_t * iseq,…