summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-11-18 11:01:31 +0900
committerKoichi Sasada <ko1@atdot.net>2021-11-19 08:32:39 +0900
commit82ea2870188d66aa75a99f03b4e7fdd1750aa196 (patch)
tree6ae732893312619a03e8dee23418a52df784d1f8 /test
parentbe71c95b88019a1ca7a030a757ce343b743d8aff (diff)
optimize `Struct` getter/setter
Introduce new optimized method type `OPTIMIZED_METHOD_TYPE_STRUCT_AREF/ASET` with index information.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5131
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_yjit.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_yjit.rb b/test/ruby/test_yjit.rb
index 9cb727eae1..2b7d5523df 100644
--- a/test/ruby/test_yjit.rb
+++ b/test/ruby/test_yjit.rb
@@ -408,6 +408,8 @@ class TestYJIT < Test::Unit::TestCase
end
def test_invokebuiltin
+ skip "Struct's getter/setter doesn't use invokebuiltin and YJIT doesn't support new logic"
+
assert_compiles(<<~RUBY)
def foo(obj)
obj.foo = 123