Remove rb_vm_push_frame
as it is no longer used.
This commit is contained in:
parent
fd461dea06
commit
9dda0a03cc
12
cont.c
12
cont.c
@ -1713,18 +1713,6 @@ fiber_t_alloc(VALUE fiber_value)
|
|||||||
return fiber;
|
return fiber;
|
||||||
}
|
}
|
||||||
|
|
||||||
rb_control_frame_t *
|
|
||||||
rb_vm_push_frame(rb_execution_context_t *sec,
|
|
||||||
const rb_iseq_t *iseq,
|
|
||||||
VALUE type,
|
|
||||||
VALUE self,
|
|
||||||
VALUE specval,
|
|
||||||
VALUE cref_or_me,
|
|
||||||
const VALUE *pc,
|
|
||||||
VALUE *sp,
|
|
||||||
int local_size,
|
|
||||||
int stack_max);
|
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
fiber_initialize(VALUE self, VALUE proc, struct fiber_pool * fiber_pool)
|
fiber_initialize(VALUE self, VALUE proc, struct fiber_pool * fiber_pool)
|
||||||
{
|
{
|
||||||
|
11
thread.c
11
thread.c
@ -691,17 +691,6 @@ thread_do_start(rb_thread_t *th)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void rb_ec_clear_current_thread_trace_func(const rb_execution_context_t *ec);
|
void rb_ec_clear_current_thread_trace_func(const rb_execution_context_t *ec);
|
||||||
rb_control_frame_t *
|
|
||||||
rb_vm_push_frame(rb_execution_context_t *sec,
|
|
||||||
const rb_iseq_t *iseq,
|
|
||||||
VALUE type,
|
|
||||||
VALUE self,
|
|
||||||
VALUE specval,
|
|
||||||
VALUE cref_or_me,
|
|
||||||
const VALUE *pc,
|
|
||||||
VALUE *sp,
|
|
||||||
int local_size,
|
|
||||||
int stack_max);
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
thread_start_func_2(rb_thread_t *th, VALUE *stack_start)
|
thread_start_func_2(rb_thread_t *th, VALUE *stack_start)
|
||||||
|
2
vm.c
2
vm.c
@ -2662,7 +2662,7 @@ rb_ec_initialize_vm_stack(rb_execution_context_t *ec, VALUE *stack, size_t size)
|
|||||||
|
|
||||||
ec->cfp = (void *)(ec->vm_stack + ec->vm_stack_size);
|
ec->cfp = (void *)(ec->vm_stack + ec->vm_stack_size);
|
||||||
|
|
||||||
rb_vm_push_frame(ec,
|
vm_push_frame(ec,
|
||||||
NULL /* dummy iseq */,
|
NULL /* dummy iseq */,
|
||||||
VM_FRAME_MAGIC_DUMMY | VM_ENV_FLAG_LOCAL | VM_FRAME_FLAG_FINISH | VM_FRAME_FLAG_CFRAME /* dummy frame */,
|
VM_FRAME_MAGIC_DUMMY | VM_ENV_FLAG_LOCAL | VM_FRAME_FLAG_FINISH | VM_FRAME_FLAG_CFRAME /* dummy frame */,
|
||||||
Qnil /* dummy self */, VM_BLOCK_HANDLER_NONE /* dummy block ptr */,
|
Qnil /* dummy self */, VM_BLOCK_HANDLER_NONE /* dummy block ptr */,
|
||||||
|
@ -345,21 +345,6 @@ vm_push_frame(rb_execution_context_t *ec,
|
|||||||
return cfp;
|
return cfp;
|
||||||
}
|
}
|
||||||
|
|
||||||
rb_control_frame_t *
|
|
||||||
rb_vm_push_frame(rb_execution_context_t *ec,
|
|
||||||
const rb_iseq_t *iseq,
|
|
||||||
VALUE type,
|
|
||||||
VALUE self,
|
|
||||||
VALUE specval,
|
|
||||||
VALUE cref_or_me,
|
|
||||||
const VALUE *pc,
|
|
||||||
VALUE *sp,
|
|
||||||
int local_size,
|
|
||||||
int stack_max)
|
|
||||||
{
|
|
||||||
return vm_push_frame(ec, iseq, type, self, specval, cref_or_me, pc, sp, local_size, stack_max);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* return TRUE if the frame is finished */
|
/* return TRUE if the frame is finished */
|
||||||
static inline int
|
static inline int
|
||||||
vm_pop_frame(rb_execution_context_t *ec, rb_control_frame_t *cfp, const VALUE *ep)
|
vm_pop_frame(rb_execution_context_t *ec, rb_control_frame_t *cfp, const VALUE *ep)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user