inst = self Module.new do define_method("load_iseq") do |path| source_code = File.read(path) ruby_code = inst.syntax(source_code) RubyVM::InstructionSequence.compile(ruby_code) end end end end
inst = self Module.new do define_method("load_iseq") do |path| source_code = File.read(path) ruby_code = inst.syntax(source_code) RubyVM::InstructionSequence.compile(ruby_code) end end end end
inst = self Module.new do define_method("load_iseq") do |path| source_code = File.read(path) ruby_code = inst.syntax(source_code) RubyVM::InstructionSequence.compile(ruby_code) end end end end
inst = self Module.new do define_method("load_iseq") do |path| source_code = File.read(path) ruby_code = inst.syntax(source_code) RubyVM::InstructionSequence.compile(ruby_code) end end end end
inst = self Module.new do define_method("load_iseq") do |path| source_code = File.read(path) ruby_code = inst.syntax(source_code) RubyVM::InstructionSequence.compile(ruby_code) end end end end
inst = self Module.new do define_method("load_iseq") do |path| source_code = File.read(path) ruby_code = inst.syntax(source_code) RubyVM::InstructionSequence.compile(ruby_code) end end end end
pc = 0 bytecode.each do |b| unless b.is_a?(Array) new_bytecode << b next end unless [ :send, :opt_send_without_block].include?(b[0]) pc += b.size new_bytecode << b next end