ruby-changes:68623
From: Alan <ko1@a...>
Date: Thu, 21 Oct 2021 08:11:02 +0900 (JST)
Subject: [ruby-changes:68623] f3c961f273 (master): endbr64 is fine
https://git.ruby-lang.org/ruby.git/commit/?id=f3c961f273 From f3c961f273d3fa305c9ebea57e5d1ff96f241e19 Mon Sep 17 00:00:00 2001 From: Alan Wu <XrXr@u...> Date: Thu, 24 Sep 2020 19:26:21 -0400 Subject: endbr64 is fine --- tool/ruby_vm/models/micro_jit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/ruby_vm/models/micro_jit.rb b/tool/ruby_vm/models/micro_jit.rb index 61c28c84b2..4473f617fc 100644 --- a/tool/ruby_vm/models/micro_jit.rb +++ b/tool/ruby_vm/models/micro_jit.rb @@ -122,7 +122,7 @@ module RubyVM::MicroJIT https://github.com/ruby/ruby/blob/trunk/tool/ruby_vm/models/micro_jit.rb#L122 raise 'rip reference in example makes copying unsafe' if handler_instructions.any? { |_, _, full_line| full_line.downcase.include?('rip') } - acceptable_mnemonics = %w(mov jmp lea call) + acceptable_mnemonics = %w(mov jmp lea call endbr64) unrecognized = nil handler_instructions.each { |i| unrecognized = i unless acceptable_mnemonics.include?(i[1]) } raise "found an unrecognized \"#{unrecognized[1]}\" instruction in the example. List of recognized instructions: #{acceptable_mnemonics.join(', ')}" if unrecognized -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/