Defining an instruction: adding opt_respond_to to the Ruby VM, part 5

In Peephole optimizations: adding opt_respond_to to the Ruby VM, part 4 , we dug deep. We found the connection between prism compilation and the specialization we need for our new bytecode, called “peephole optimization”. We learned how to debug and step through C code in the Ruby runtime, and we added some logic for matching the “pattern” of the instruction we want to change. Now that we know…