Lines Matching refs:EG

106 	state->vm_stack = EG(vm_stack);  in zend_fiber_capture_vm_state()
107 state->vm_stack_top = EG(vm_stack_top); in zend_fiber_capture_vm_state()
108 state->vm_stack_end = EG(vm_stack_end); in zend_fiber_capture_vm_state()
109 state->vm_stack_page_size = EG(vm_stack_page_size); in zend_fiber_capture_vm_state()
110 state->current_execute_data = EG(current_execute_data); in zend_fiber_capture_vm_state()
111 state->error_reporting = EG(error_reporting); in zend_fiber_capture_vm_state()
112 state->jit_trace_num = EG(jit_trace_num); in zend_fiber_capture_vm_state()
113 state->bailout = EG(bailout); in zend_fiber_capture_vm_state()
114 state->active_fiber = EG(active_fiber); in zend_fiber_capture_vm_state()
119 EG(vm_stack) = state->vm_stack; in zend_fiber_restore_vm_state()
120 EG(vm_stack_top) = state->vm_stack_top; in zend_fiber_restore_vm_state()
121 EG(vm_stack_end) = state->vm_stack_end; in zend_fiber_restore_vm_state()
122 EG(vm_stack_page_size) = state->vm_stack_page_size; in zend_fiber_restore_vm_state()
123 EG(current_execute_data) = state->current_execute_data; in zend_fiber_restore_vm_state()
124 EG(error_reporting) = state->error_reporting; in zend_fiber_restore_vm_state()
125 EG(jit_trace_num) = state->jit_trace_num; in zend_fiber_restore_vm_state()
126 EG(bailout) = state->bailout; in zend_fiber_restore_vm_state()
127 EG(active_fiber) = state->active_fiber; in zend_fiber_restore_vm_state()
306 zend_fiber_context *context = EG(current_fiber_context); in zend_fiber_trampoline()
387 zend_fiber_context *from = EG(current_fiber_context); in zend_fiber_switch_context()
418 EG(current_fiber_context) = to; in zend_fiber_switch_context()
453 EG(current_fiber_context) = from; in zend_fiber_switch_context()
467 zend_vm_stack current_stack = EG(vm_stack); in zend_fiber_cleanup()
468 EG(vm_stack) = fiber->vm_stack; in zend_fiber_cleanup()
470 EG(vm_stack) = current_stack; in zend_fiber_cleanup()
481 zend_fiber *fiber = EG(active_fiber); in zend_fiber_execute()
490 EG(vm_stack) = NULL; in zend_fiber_execute()
494 EG(vm_stack) = stack; in zend_fiber_execute()
495 EG(vm_stack_top) = stack->top + ZEND_CALL_FRAME_SLOT; in zend_fiber_execute()
496 EG(vm_stack_end) = stack->end; in zend_fiber_execute()
497 EG(vm_stack_page_size) = ZEND_FIBER_VM_STACK_SIZE; in zend_fiber_execute()
505 fiber->stack_bottom->prev_execute_data = EG(current_execute_data); in zend_fiber_execute()
507 EG(current_execute_data) = fiber->execute_data; in zend_fiber_execute()
508 EG(jit_trace_num) = 0; in zend_fiber_execute()
509 EG(error_reporting) = error_reporting; in zend_fiber_execute()
519 if (EG(exception)) { in zend_fiber_execute()
521 || !(zend_is_graceful_exit(EG(exception)) || zend_is_unwind_exit(EG(exception))) in zend_fiber_execute()
526 ZVAL_OBJ_COPY(&transfer->value, EG(exception)); in zend_fiber_execute()
537 fiber->vm_stack = EG(vm_stack); in zend_fiber_execute()
573 EG(active_fiber) = NULL; in zend_fiber_switch_to()
582 zend_fiber *previous = EG(active_fiber); in zend_fiber_resume()
585 previous->execute_data = EG(current_execute_data); in zend_fiber_resume()
588 fiber->caller = EG(current_fiber_context); in zend_fiber_resume()
589 EG(active_fiber) = fiber; in zend_fiber_resume()
593 EG(active_fiber) = previous; in zend_fiber_resume()
603 fiber->previous = EG(current_fiber_context); in zend_fiber_suspend()
605 fiber->execute_data = EG(current_execute_data); in zend_fiber_suspend()
630 zend_object *exception = EG(exception); in zend_fiber_object_destroy()
631 EG(exception) = NULL; in zend_fiber_object_destroy()
643 EG(exception) = Z_OBJ(transfer.value); in zend_fiber_object_destroy()
645 if (!exception && EG(current_execute_data) && EG(current_execute_data)->func in zend_fiber_object_destroy()
646 && ZEND_USER_CODE(EG(current_execute_data)->func->common.type)) { in zend_fiber_object_destroy()
647 zend_rethrow_exception(EG(current_execute_data)); in zend_fiber_object_destroy()
650 zend_exception_set_previous(EG(exception), exception); in zend_fiber_object_destroy()
652 if (!EG(current_execute_data)) { in zend_fiber_object_destroy()
653 zend_exception_error(EG(exception), E_ERROR); in zend_fiber_object_destroy()
657 EG(exception) = exception; in zend_fiber_object_destroy()
766 …if (!zend_fiber_init_context(&fiber->context, zend_ce_fiber, zend_fiber_execute, EG(fiber_stack_si… in ZEND_METHOD()
786 zend_fiber *fiber = EG(active_fiber); in ZEND_METHOD()
834 fiber->stack_bottom->prev_execute_data = EG(current_execute_data); in ZEND_METHOD()
862 fiber->stack_bottom->prev_execute_data = EG(current_execute_data); in ZEND_METHOD()
944 zend_fiber *fiber = EG(active_fiber); in ZEND_METHOD()
993 EG(main_fiber_context) = context; in zend_fiber_init()
994 EG(current_fiber_context) = context; in zend_fiber_init()
995 EG(active_fiber) = NULL; in zend_fiber_init()
1003 efree(EG(main_fiber_context)->stack); in zend_fiber_shutdown()
1006 efree(EG(main_fiber_context)); in zend_fiber_shutdown()