1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Stop using UJIT.install_entry in btest

CI runs on some platforms uJIT doesn't support. They don't have
UJIT.install_entry. Maybe we want something like `install_entry_if_possible`.
This commit is contained in:
Alan Wu 2021-02-19 15:44:53 -05:00
parent 48b8c5106c
commit b87962eb04

View file

@ -168,7 +168,8 @@ assert_normal_exit %q{
end end
new.foo new.foo
UJIT.install_entry(RubyVM::InstructionSequence.of(instance_method(:foo))) new.foo
new.foo
new.foo new.foo
end end
@ -199,20 +200,20 @@ assert_equal "nil\n", %q{
} }
# Test that opt_aref checks the class of the receiver # Test that opt_aref checks the class of the receiver
assert_equal ":special\n", %q{ assert_equal 'special', %q{
def foo(array) def foo(array)
array[30] array[30]
end end
UJIT.install_entry(RubyVM::InstructionSequence.of(method(:foo))) foo([])
foo([])
special = [] special = []
def special.[](idx) def special.[](idx)
:special 'special'
end end
p foo(special) foo(special)
nil
} }
# Test that object references in generated code get marked and moved # Test that object references in generated code get marked and moved