Lines Matching refs:EG
102 state->vm_stack = EG(vm_stack); in zend_fiber_capture_vm_state()
103 state->vm_stack_top = EG(vm_stack_top); in zend_fiber_capture_vm_state()
104 state->vm_stack_end = EG(vm_stack_end); in zend_fiber_capture_vm_state()
105 state->vm_stack_page_size = EG(vm_stack_page_size); in zend_fiber_capture_vm_state()
106 state->current_execute_data = EG(current_execute_data); in zend_fiber_capture_vm_state()
107 state->error_reporting = EG(error_reporting); in zend_fiber_capture_vm_state()
108 state->jit_trace_num = EG(jit_trace_num); in zend_fiber_capture_vm_state()
109 state->bailout = EG(bailout); in zend_fiber_capture_vm_state()
110 state->active_fiber = EG(active_fiber); in zend_fiber_capture_vm_state()
115 EG(vm_stack) = state->vm_stack; in zend_fiber_restore_vm_state()
116 EG(vm_stack_top) = state->vm_stack_top; in zend_fiber_restore_vm_state()
117 EG(vm_stack_end) = state->vm_stack_end; in zend_fiber_restore_vm_state()
118 EG(vm_stack_page_size) = state->vm_stack_page_size; in zend_fiber_restore_vm_state()
119 EG(current_execute_data) = state->current_execute_data; in zend_fiber_restore_vm_state()
120 EG(error_reporting) = state->error_reporting; in zend_fiber_restore_vm_state()
121 EG(jit_trace_num) = state->jit_trace_num; in zend_fiber_restore_vm_state()
122 EG(bailout) = state->bailout; in zend_fiber_restore_vm_state()
123 EG(active_fiber) = state->active_fiber; in zend_fiber_restore_vm_state()
294 zend_fiber_context *context = EG(current_fiber_context); in zend_fiber_trampoline()
371 zend_fiber_context *from = EG(current_fiber_context); in zend_fiber_switch_context()
402 EG(current_fiber_context) = to; in zend_fiber_switch_context()
437 EG(current_fiber_context) = from; in zend_fiber_switch_context()
452 zend_fiber *fiber = EG(active_fiber); in zend_fiber_execute()
461 EG(vm_stack) = NULL; in zend_fiber_execute()
465 EG(vm_stack) = stack; in zend_fiber_execute()
466 EG(vm_stack_top) = stack->top + ZEND_CALL_FRAME_SLOT; in zend_fiber_execute()
467 EG(vm_stack_end) = stack->end; in zend_fiber_execute()
468 EG(vm_stack_page_size) = ZEND_FIBER_VM_STACK_SIZE; in zend_fiber_execute()
476 fiber->stack_bottom->prev_execute_data = EG(current_execute_data); in zend_fiber_execute()
478 EG(current_execute_data) = fiber->execute_data; in zend_fiber_execute()
479 EG(jit_trace_num) = 0; in zend_fiber_execute()
480 EG(error_reporting) = error_reporting; in zend_fiber_execute()
490 if (EG(exception)) { in zend_fiber_execute()
492 || !(zend_is_graceful_exit(EG(exception)) || zend_is_unwind_exit(EG(exception))) in zend_fiber_execute()
497 ZVAL_OBJ_COPY(&transfer->value, EG(exception)); in zend_fiber_execute()
546 EG(active_fiber) = NULL; in zend_fiber_switch_to()
555 zend_fiber *previous = EG(active_fiber); in zend_fiber_resume()
558 previous->execute_data = EG(current_execute_data); in zend_fiber_resume()
561 fiber->caller = EG(current_fiber_context); in zend_fiber_resume()
562 EG(active_fiber) = fiber; in zend_fiber_resume()
566 EG(active_fiber) = previous; in zend_fiber_resume()
576 fiber->previous = EG(current_fiber_context); in zend_fiber_suspend()
578 fiber->execute_data = EG(current_execute_data); in zend_fiber_suspend()
603 zend_object *exception = EG(exception); in zend_fiber_object_destroy()
604 EG(exception) = NULL; in zend_fiber_object_destroy()
616 EG(exception) = Z_OBJ(transfer.value); in zend_fiber_object_destroy()
618 if (!exception && EG(current_execute_data) && EG(current_execute_data)->func in zend_fiber_object_destroy()
619 && ZEND_USER_CODE(EG(current_execute_data)->func->common.type)) { in zend_fiber_object_destroy()
620 zend_rethrow_exception(EG(current_execute_data)); in zend_fiber_object_destroy()
623 zend_exception_set_previous(EG(exception), exception); in zend_fiber_object_destroy()
625 if (!EG(current_execute_data)) { in zend_fiber_object_destroy()
626 zend_exception_error(EG(exception), E_ERROR); in zend_fiber_object_destroy()
630 EG(exception) = exception; in zend_fiber_object_destroy()
710 …if (!zend_fiber_init_context(&fiber->context, zend_ce_fiber, zend_fiber_execute, EG(fiber_stack_si… in ZEND_METHOD()
730 zend_fiber *fiber = EG(active_fiber); in ZEND_METHOD()
778 fiber->stack_bottom->prev_execute_data = EG(current_execute_data); in ZEND_METHOD()
806 fiber->stack_bottom->prev_execute_data = EG(current_execute_data); in ZEND_METHOD()
888 zend_fiber *fiber = EG(active_fiber); in ZEND_METHOD()
937 EG(main_fiber_context) = context; in zend_fiber_init()
938 EG(current_fiber_context) = context; in zend_fiber_init()
939 EG(active_fiber) = NULL; in zend_fiber_init()
947 efree(EG(main_fiber_context)->stack); in zend_fiber_shutdown()
950 efree(EG(main_fiber_context)); in zend_fiber_shutdown()