From 2e561ff255ea69e50f2d53240332cfd96463ef06 Mon Sep 17 00:00:00 2001 From: Maxime Chevalier-Boisvert Date: Thu, 28 Jan 2021 16:58:20 -0500 Subject: Restore interpreter regs in ujit hook. Implement leave bytecode. --- iseq.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'iseq.c') diff --git a/iseq.c b/iseq.c index d4d5261c3c..958f7f847f 100644 --- a/iseq.c +++ b/iseq.c @@ -3485,21 +3485,12 @@ trace_set_i(void *vstart, void *vend, size_t stride, void *data) return 0; } -VALUE * -rb_ujit_empty_func(rb_control_frame_t *cfp) +void +rb_ujit_empty_func_with_ec(rb_control_frame_t *cfp, rb_execution_context_t *ec) { - // okay, not really empty, so maybe think of another name. // it's put in this file instead of say, compile.c to dodge long C compile time. // it just needs to be in a different unit from vm.o so the compiler can't see the definition // and is forced to emit a call that respects the calling convention. - return NULL; -} - -VALUE * -rb_ujit_empty_func_with_ec(rb_control_frame_t *cfp, rb_execution_context_t *ec) -{ - // see rb_ujit_empty_func - return NULL; } void -- cgit v1.2.3