mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 21:49:06 +02:00
RJIT: Just skip generating code for aarch64/arm64 (#9221)
This commit is contained in:
parent
c83a648fc8
commit
0f1c7e3bcb
2 changed files with 13 additions and 5 deletions
|
@ -59,6 +59,7 @@ module RubyVM::RJIT
|
|||
# @param iseq `RubyVM::RJIT::CPointer::Struct_rb_iseq_t`
|
||||
# @param cfp `RubyVM::RJIT::CPointer::Struct_rb_control_frame_t`
|
||||
def compile(iseq, cfp)
|
||||
return unless supported_platform?
|
||||
pc = cfp.pc.to_i
|
||||
jit = JITState.new(iseq:, cfp:)
|
||||
asm = Assembler.new
|
||||
|
@ -505,5 +506,12 @@ module RubyVM::RJIT
|
|||
raise "'#{cond.inspect}' was not true"
|
||||
end
|
||||
end
|
||||
|
||||
def supported_platform?
|
||||
return @supported_platform if defined?(@supported_platform)
|
||||
@supported_platform = RUBY_PLATFORM.match?(/x86_64/).tap do |supported|
|
||||
warn "warning: RJIT does not support #{RUBY_PLATFORM} yet" unless supported
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue