summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bootstraptest/test_insns.rb5
-rw-r--r--bootstraptest/test_yjit.rb2
-rw-r--r--test/ruby/test_zjit.rb9
-rw-r--r--zjit/src/codegen.rs2
4 files changed, 2 insertions, 16 deletions
diff --git a/bootstraptest/test_insns.rb b/bootstraptest/test_insns.rb
index 8a6efae089..9e2c4a52a7 100644
--- a/bootstraptest/test_insns.rb
+++ b/bootstraptest/test_insns.rb
@@ -426,11 +426,6 @@ tests = [
x&.x[true] ||= true # here
},
- [ 'opt_aref_with', %q{ { 'true' => true }['true'] }, ],
- [ 'opt_aref_with', %q{ Struct.new(:nil).new['nil'].nil? }, ],
- [ 'opt_aset_with', %q{ {}['true'] = true }, ],
- [ 'opt_aset_with', %q{ Struct.new(:true).new['true'] = true }, ],
-
[ 'opt_length', %q{ 'true' .length == 4 }, ],
[ 'opt_length', %q{ :true .length == 4 }, ],
[ 'opt_length', %q{ [ 'true' ] .length == 1 }, ],
diff --git a/bootstraptest/test_yjit.rb b/bootstraptest/test_yjit.rb
index f76af3633d..267bc09b75 100644
--- a/bootstraptest/test_yjit.rb
+++ b/bootstraptest/test_yjit.rb
@@ -1330,7 +1330,7 @@ assert_equal '[42, :default]', %q{
]
}
-# Test default value block for Hash with opt_aref_with
+# Test default value block for Hash
assert_equal "false", <<~RUBY, frozen_string_literal: false
def index_with_string(h)
h["foo"]
diff --git a/test/ruby/test_zjit.rb b/test/ruby/test_zjit.rb
index 8f83e858a6..28d25f88a4 100644
--- a/test/ruby/test_zjit.rb
+++ b/test/ruby/test_zjit.rb
@@ -1055,15 +1055,6 @@ class TestZJIT < Test::Unit::TestCase
}
end
-
- def test_opt_aref_with
- assert_compiles ':ok', %q{
- def aref_with(hash) = hash["key"]
-
- aref_with({ "key" => :ok })
- }
- end
-
def test_putself
assert_compiles '3', %q{
class Integer
diff --git a/zjit/src/codegen.rs b/zjit/src/codegen.rs
index 51c54846ba..021db1c4c8 100644
--- a/zjit/src/codegen.rs
+++ b/zjit/src/codegen.rs
@@ -873,7 +873,7 @@ fn gen_send_without_block(
) -> lir::Opnd {
// Note that it's incorrect to use this frame state to side exit because
// the state might not be on the boundary of an interpreter instruction.
- // For example, `opt_aref_with` pushes to the stack and then sends.
+ // For example, `opt_str_uminus` pushes to the stack and then sends.
asm_comment!(asm, "spill frame state");
// Save PC and SP