Lines Matching refs:JIT_G
510 if (!JIT_G(current_frame) || in zend_jit_may_avoid_refcounting()
511 !JIT_G(current_frame)->call->func || in zend_jit_may_avoid_refcounting()
512 !TRACE_FRAME_IS_LAST_SEND_BY_VAL(JIT_G(current_frame)->call)) { in zend_jit_may_avoid_refcounting()
526 if (!JIT_G(current_frame) || in zend_jit_may_avoid_refcounting()
527 !JIT_G(current_frame)->call->func || in zend_jit_may_avoid_refcounting()
528 !TRACE_FRAME_IS_LAST_SEND_BY_VAL(JIT_G(current_frame)->call)) { in zend_jit_may_avoid_refcounting()
824 add_assoc_bool(&stats, "enabled", JIT_G(enabled)); in zend_jit_status()
825 add_assoc_bool(&stats, "on", JIT_G(on)); in zend_jit_status()
826 add_assoc_long(&stats, "kind", JIT_G(trigger)); in zend_jit_status()
827 add_assoc_long(&stats, "opt_level", JIT_G(opt_level)); in zend_jit_status()
828 add_assoc_long(&stats, "opt_flags", JIT_G(opt_flags)); in zend_jit_status()
1079 if ((JIT_G(opt_level) >= ZEND_JIT_LEVEL_OPT_FUNC) in zend_jit_op_array_analyze1()
1100 if ((JIT_G(opt_level) >= ZEND_JIT_LEVEL_OPT_FUNC) in zend_jit_op_array_analyze2()
1134 if (JIT_G(opt_flags) & ZEND_JIT_REG_ALLOC_GLOBAL) { in zend_jit_allocate_registers()
1284 if (JIT_G(debug) & ZEND_JIT_DEBUG_REG_ALLOC) { in zend_jit_allocate_registers()
1402 if (JIT_G(bisect_limit)) { in zend_jit()
1404 if (jit_bisect_pos >= JIT_G(bisect_limit)) { in zend_jit()
1405 if (jit_bisect_pos == JIT_G(bisect_limit)) { in zend_jit()
1427 if (JIT_G(opt_flags) & (ZEND_JIT_REG_ALLOC_LOCAL|ZEND_JIT_REG_ALLOC_GLOBAL)) { in zend_jit()
1447 if (JIT_G(opt_level) < ZEND_JIT_LEVEL_INLINE) { in zend_jit()
1471 } else if (JIT_G(opt_level) < ZEND_JIT_LEVEL_INLINE && in zend_jit()
1477 if (JIT_G(opt_flags) & (ZEND_JIT_REG_ALLOC_LOCAL|ZEND_JIT_REG_ALLOC_GLOBAL)) { in zend_jit()
1483 } else if (JIT_G(opt_level) < ZEND_JIT_LEVEL_INLINE && in zend_jit()
1489 if (JIT_G(opt_flags) & (ZEND_JIT_REG_ALLOC_LOCAL|ZEND_JIT_REG_ALLOC_GLOBAL)) { in zend_jit()
1498 if ((JIT_G(opt_flags) & ZEND_JIT_REG_ALLOC_GLOBAL) && ctx.ra) { in zend_jit()
1522 if (JIT_G(opt_level) < ZEND_JIT_LEVEL_INLINE) { in zend_jit()
1547 if ((JIT_G(opt_flags) & ZEND_JIT_REG_ALLOC_GLOBAL) && ra) { in zend_jit()
1588 if (JIT_G(opt_level) >= ZEND_JIT_LEVEL_INLINE) { in zend_jit()
2691 if (JIT_G(opt_level) < ZEND_JIT_LEVEL_INLINE) { in zend_jit()
2768 if (JIT_G(opt_level) >= ZEND_JIT_LEVEL_OPT_FUNC) { in zend_jit()
2883 if (JIT_G(opt_flags) & (ZEND_JIT_REG_ALLOC_LOCAL|ZEND_JIT_REG_ALLOC_GLOBAL)) { in zend_jit()
2890 if (JIT_G(opt_flags) & (ZEND_JIT_REG_ALLOC_LOCAL|ZEND_JIT_REG_ALLOC_GLOBAL)) { in zend_jit()
2900 if (JIT_G(trigger) == ZEND_JIT_ON_FIRST_EXEC || in zend_jit_collect_calls()
2901 JIT_G(trigger) == ZEND_JIT_ON_PROF_REQUEST || in zend_jit_collect_calls()
2902 JIT_G(trigger) == ZEND_JIT_ON_HOT_COUNTERS) { in zend_jit_collect_calls()
2920 if (JIT_G(trigger) == ZEND_JIT_ON_FIRST_EXEC || in zend_jit_cleanup_func_info()
2921 JIT_G(trigger) == ZEND_JIT_ON_PROF_REQUEST || in zend_jit_cleanup_func_info()
2922 JIT_G(trigger) == ZEND_JIT_ON_HOT_COUNTERS) { in zend_jit_cleanup_func_info()
2959 orig_trigger = JIT_G(trigger); in zend_real_jit_func()
2960 JIT_G(trigger) = trigger; in zend_real_jit_func()
2982 if (JIT_G(opt_level) >= ZEND_JIT_LEVEL_OPT_FUNCS) { in zend_real_jit_func()
2995 if (JIT_G(debug) & ZEND_JIT_DEBUG_SSA) { in zend_real_jit_func()
3005 JIT_G(trigger) = orig_trigger; in zend_real_jit_func()
3011 JIT_G(trigger) = orig_trigger; in zend_real_jit_func()
3087 if (((double)counter / (double)zend_jit_profile_counter) > JIT_G(prof_threshold)) { in zend_jit_check_funcs()
3133 if (JIT_G(hot_func)) { in zend_jit_setup_hot_counters_ex()
3145 if (JIT_G(hot_loop)) { in zend_jit_setup_hot_counters_ex()
3184 ZEND_ASSERT(!JIT_G(hot_func) || zend_jit_func_hot_counter_handler != NULL); in zend_jit_setup_hot_counters()
3185 ZEND_ASSERT(!JIT_G(hot_loop) || zend_jit_loop_hot_counter_handler != NULL); in zend_jit_setup_hot_counters()
3219 if (JIT_G(trigger) == ZEND_JIT_ON_FIRST_EXEC) { in zend_jit_op_array()
3249 } else if (JIT_G(trigger) == ZEND_JIT_ON_PROF_REQUEST) { in zend_jit_op_array()
3280 } else if (JIT_G(trigger) == ZEND_JIT_ON_HOT_COUNTERS) { in zend_jit_op_array()
3282 } else if (JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE) { in zend_jit_op_array()
3284 } else if (JIT_G(trigger) == ZEND_JIT_ON_SCRIPT_LOAD) { in zend_jit_op_array()
3310 if (JIT_G(trigger) == ZEND_JIT_ON_FIRST_EXEC || in zend_jit_script()
3311 JIT_G(trigger) == ZEND_JIT_ON_PROF_REQUEST || in zend_jit_script()
3312 JIT_G(trigger) == ZEND_JIT_ON_HOT_COUNTERS || in zend_jit_script()
3313 JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE) { in zend_jit_script()
3319 } else if (JIT_G(trigger) == ZEND_JIT_ON_SCRIPT_LOAD) { in zend_jit_script()
3354 if (JIT_G(debug) & ZEND_JIT_DEBUG_SSA) { in zend_jit_script()
3372 if (JIT_G(trigger) == ZEND_JIT_ON_FIRST_EXEC in zend_jit_script()
3373 || JIT_G(trigger) == ZEND_JIT_ON_PROF_REQUEST in zend_jit_script()
3374 || JIT_G(trigger) == ZEND_JIT_ON_HOT_COUNTERS in zend_jit_script()
3375 || JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE) { in zend_jit_script()
3395 if (JIT_G(trigger) == ZEND_JIT_ON_SCRIPT_LOAD) { in zend_jit_script()
3407 if (!(JIT_G(debug) & (ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_PERF_DUMP))) { in zend_jit_unprotect()
3422 if (!(JIT_G(debug) & (ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_PERF_DUMP))) { in zend_jit_unprotect()
3442 if (!(JIT_G(debug) & (ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_PERF_DUMP))) { in zend_jit_protect()
3453 if (!(JIT_G(debug) & (ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_PERF_DUMP))) { in zend_jit_protect()
3503 JIT_G(on) = 0; in zend_jit_parse_config_num()
3510 JIT_G(opt_level) = jit % 10; in zend_jit_parse_config_num()
3514 JIT_G(trigger) = jit % 10; in zend_jit_parse_config_num()
3518 JIT_G(opt_flags) = jit % 10; in zend_jit_parse_config_num()
3522 JIT_G(opt_flags) |= ((jit % 10) ? ZEND_JIT_CPU_AVX : 0); in zend_jit_parse_config_num()
3526 JIT_G(on) = 1; in zend_jit_parse_config_num()
3533 if (stage != ZEND_INI_STAGE_STARTUP && !JIT_G(enabled)) { in zend_jit_config()
3541 JIT_G(enabled) = 0; in zend_jit_config()
3542 JIT_G(on) = 0; in zend_jit_config()
3549 JIT_G(enabled) = 1; in zend_jit_config()
3550 JIT_G(on) = 0; in zend_jit_config()
3557 JIT_G(enabled) = 1; in zend_jit_config()
3558 JIT_G(on) = 1; in zend_jit_config()
3559 JIT_G(opt_level) = ZEND_JIT_LEVEL_OPT_FUNCS; in zend_jit_config()
3560 JIT_G(trigger) = ZEND_JIT_ON_HOT_TRACE; in zend_jit_config()
3561 JIT_G(opt_flags) = ZEND_JIT_REG_ALLOC_GLOBAL | ZEND_JIT_CPU_AVX; in zend_jit_config()
3564 JIT_G(enabled) = 1; in zend_jit_config()
3565 JIT_G(on) = 1; in zend_jit_config()
3566 JIT_G(opt_level) = ZEND_JIT_LEVEL_OPT_SCRIPT; in zend_jit_config()
3567 JIT_G(trigger) = ZEND_JIT_ON_SCRIPT_LOAD; in zend_jit_config()
3568 JIT_G(opt_flags) = ZEND_JIT_REG_ALLOC_GLOBAL | ZEND_JIT_CPU_AVX; in zend_jit_config()
3576 JIT_G(enabled) = 1; in zend_jit_config()
3582 JIT_G(enabled) = 0; in zend_jit_config()
3583 JIT_G(on) = 0; in zend_jit_config()
3617 JIT_G(enabled) = 0; in zend_jit_check_support()
3618 JIT_G(on) = 0; in zend_jit_check_support()
3628 JIT_G(enabled) = 0; in zend_jit_check_support()
3629 JIT_G(on) = 0; in zend_jit_check_support()
3642 JIT_G(enabled) = 0; in zend_jit_check_support()
3643 JIT_G(on) = 0; in zend_jit_check_support()
3650 if (JIT_G(buffer_size) > 128*1024*1024) { in zend_jit_check_support()
3652 JIT_G(enabled) = 0; in zend_jit_check_support()
3653 JIT_G(on) = 0; in zend_jit_check_support()
3657 if (JIT_G(buffer_size) > 2 * Z_L(1024*1024*1024)) { in zend_jit_check_support()
3659 JIT_G(enabled) = 0; in zend_jit_check_support()
3660 JIT_G(on) = 0; in zend_jit_check_support()
3687 if (JIT_G(debug) & (ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_PERF_DUMP)) { in zend_jit_startup()
3697 if (JIT_G(debug) & (ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_PERF_DUMP)) { in zend_jit_startup()
3753 if (JIT_G(debug) & ZEND_JIT_DEBUG_SIZE && dasm_ptr != NULL) { in zend_jit_shutdown()
3779 JIT_G(enabled) = 0; in zend_jit_activate()
3780 JIT_G(on) = 0; in zend_jit_activate()
3785 if (JIT_G(on)) { in zend_jit_activate()
3786 if (JIT_G(trigger) == ZEND_JIT_ON_HOT_COUNTERS) { in zend_jit_activate()
3788 } else if (JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE) { in zend_jit_activate()