Skip to content

Commit ae7890d

Browse files
committed
Use the EC parameter in instructions.
The forwarding instructions should use the `ec` parameter passed to vm_exec_core instead of trying to look up the EC via `GET_EC()`. It's cheaper to get the local than to try looking up a global
1 parent 84f51eb commit ae7890d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

insns.def

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ sendforward
869869
struct rb_forwarding_call_data adjusted_cd;
870870
struct rb_callinfo adjusted_ci;
871871

872-
VALUE bh = vm_caller_setup_fwd_args(GET_EC(), GET_CFP(), cd, blockiseq, 0, &adjusted_cd, &adjusted_ci);
872+
VALUE bh = vm_caller_setup_fwd_args(ec, GET_CFP(), cd, blockiseq, 0, &adjusted_cd, &adjusted_ci);
873873

874874
val = vm_sendish(ec, GET_CFP(), &adjusted_cd.cd, bh, mexp_search_method);
875875
JIT_EXEC(ec, val);
@@ -1081,7 +1081,7 @@ invokesuperforward
10811081
struct rb_forwarding_call_data adjusted_cd;
10821082
struct rb_callinfo adjusted_ci;
10831083

1084-
VALUE bh = vm_caller_setup_fwd_args(GET_EC(), GET_CFP(), cd, blockiseq, 1, &adjusted_cd, &adjusted_ci);
1084+
VALUE bh = vm_caller_setup_fwd_args(ec, GET_CFP(), cd, blockiseq, 1, &adjusted_cd, &adjusted_ci);
10851085

10861086
val = vm_sendish(ec, GET_CFP(), &adjusted_cd.cd, bh, mexp_search_super);
10871087
JIT_EXEC(ec, val);

0 commit comments

Comments
 (0)