Skip to content

Commit

Permalink
Port send to the new backend and test it (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Aug 26, 2022
1 parent b972278 commit 14bc692
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions bootstraptest/test_yjit_new_backend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,11 @@ def foo()
foo.foo
}

# send
assert_equal '["1", "2"]', %q{def foo = [1, 2].map(&:to_s); foo}
assert_equal '["1", "2"]', %q{def foo = [1, 2].map { |i| i.to_s }; foo}
assert_equal '["bar"]', %q{def foo = ["foo/bar"].map(&File.method(:basename)); foo}

# getglobal
assert_equal '333', %q{
$bar = 333
Expand Down
2 changes: 1 addition & 1 deletion yjit/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5997,7 +5997,7 @@ fn get_gen_fn(opcode: VALUE) -> Option<InsnGenFn> {
//YARVINSN_getblockparamproxy => Some(gen_getblockparamproxy),
//YARVINSN_getblockparam => Some(gen_getblockparam),
YARVINSN_opt_send_without_block => Some(gen_opt_send_without_block),
//YARVINSN_send => Some(gen_send),
YARVINSN_send => Some(gen_send),
//YARVINSN_invokesuper => Some(gen_invokesuper),
YARVINSN_leave => Some(gen_leave),

Expand Down

0 comments on commit 14bc692

Please sign in to comment.