make compiler happy
This commit is contained in:
parent
8fd3e0e9ff
commit
5336f6dada
@ -465,6 +465,8 @@ yjit_block_assumptions_free(block_t *block)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
typedef VALUE (*yjit_func_t)(rb_execution_context_t *, rb_control_frame_t *);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
rb_yjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec)
|
rb_yjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec)
|
||||||
{
|
{
|
||||||
@ -472,14 +474,13 @@ rb_yjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec)
|
|||||||
#if OPT_DIRECT_THREADED_CODE || OPT_CALL_THREADED_CODE
|
#if OPT_DIRECT_THREADED_CODE || OPT_CALL_THREADED_CODE
|
||||||
RB_VM_LOCK_ENTER();
|
RB_VM_LOCK_ENTER();
|
||||||
// TODO: I think we need to stop all other ractors here
|
// TODO: I think we need to stop all other ractors here
|
||||||
VALUE *encoded = (VALUE *)iseq->body->iseq_encoded;
|
|
||||||
|
|
||||||
// Compile a block version starting at the first instruction
|
// Compile a block version starting at the first instruction
|
||||||
uint8_t* code_ptr = gen_entry_point(iseq, 0, ec);
|
uint8_t* code_ptr = gen_entry_point(iseq, 0, ec);
|
||||||
|
|
||||||
if (code_ptr)
|
if (code_ptr)
|
||||||
{
|
{
|
||||||
iseq->body->jit_func = code_ptr;
|
iseq->body->jit_func = (yjit_func_t)code_ptr;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
iseq->body->jit_func = 0;
|
iseq->body->jit_func = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user