insns.def: stop pushing unnecessary keys for MJIT
[Bug #14892] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c2df63d08a
commit
8bec3e1fe2
@ -1260,7 +1260,9 @@ opt_aset_with
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
PUSH(recv);
|
PUSH(recv);
|
||||||
|
#ifndef MJIT_HEADER
|
||||||
PUSH(rb_str_resurrect(key));
|
PUSH(rb_str_resurrect(key));
|
||||||
|
#endif
|
||||||
PUSH(val);
|
PUSH(val);
|
||||||
#ifndef MJIT_HEADER
|
#ifndef MJIT_HEADER
|
||||||
ADD_PC(-WIDTH_OF_opt_send_without_block);
|
ADD_PC(-WIDTH_OF_opt_send_without_block);
|
||||||
@ -1280,8 +1282,8 @@ opt_aref_with
|
|||||||
|
|
||||||
if (val == Qundef) {
|
if (val == Qundef) {
|
||||||
PUSH(recv);
|
PUSH(recv);
|
||||||
PUSH(rb_str_resurrect(key));
|
|
||||||
#ifndef MJIT_HEADER
|
#ifndef MJIT_HEADER
|
||||||
|
PUSH(rb_str_resurrect(key));
|
||||||
ADD_PC(-WIDTH_OF_opt_send_without_block);
|
ADD_PC(-WIDTH_OF_opt_send_without_block);
|
||||||
#endif
|
#endif
|
||||||
DISPATCH_ORIGINAL_INSN(opt_send_without_block);
|
DISPATCH_ORIGINAL_INSN(opt_send_without_block);
|
||||||
|
@ -685,7 +685,7 @@ class TestJIT < Test::Unit::TestCase
|
|||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_stack_pointer_with_regexpmatch
|
def test_program_pointer_with_regexpmatch
|
||||||
assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "aa", success_count: 1)
|
assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "aa", success_count: 1)
|
||||||
begin;
|
begin;
|
||||||
2.times do
|
2.times do
|
||||||
@ -695,6 +695,24 @@ class TestJIT < Test::Unit::TestCase
|
|||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_pushed_values_with_opt_aset_with
|
||||||
|
assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "{}{}", success_count: 1)
|
||||||
|
begin;
|
||||||
|
2.times do
|
||||||
|
print(Thread.current["a"] = {})
|
||||||
|
end
|
||||||
|
end;
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_pushed_values_with_opt_aref_with
|
||||||
|
assert_eval_with_jit("#{<<~"begin;"}\n#{<<~"end;"}", stdout: "nil\nnil\n", success_count: 1)
|
||||||
|
begin;
|
||||||
|
2.times do
|
||||||
|
p(Thread.current["a"])
|
||||||
|
end
|
||||||
|
end;
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
# The shortest way to test one proc
|
# The shortest way to test one proc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user