Lines Matching refs:JIT_G
244 add_assoc_bool(&stats, "enabled", JIT_G(enabled)); in zend_jit_status()
245 add_assoc_bool(&stats, "on", JIT_G(on)); in zend_jit_status()
246 add_assoc_long(&stats, "kind", JIT_G(trigger)); in zend_jit_status()
247 add_assoc_long(&stats, "opt_level", JIT_G(opt_level)); in zend_jit_status()
248 add_assoc_long(&stats, "opt_flags", JIT_G(opt_flags)); in zend_jit_status()
438 …if (JIT_G(debug) & (ZEND_JIT_DEBUG_ASM|ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_OPROFILE|ZEND_JIT_DEBUG_P… in dasm_link_and_encode()
445 if (JIT_G(debug) & ZEND_JIT_DEBUG_ASM) { in dasm_link_and_encode()
456 if (JIT_G(debug) & (ZEND_JIT_DEBUG_ASM_STUBS|ZEND_JIT_DEBUG_ASM)) { in dasm_link_and_encode()
458 if ((JIT_G(debug) & (trace_num ? ZEND_JIT_DEBUG_ASM : ZEND_JIT_DEBUG_ASM_STUBS)) != 0) { in dasm_link_and_encode()
473 if (JIT_G(debug) & ZEND_JIT_DEBUG_GDB) { in dasm_link_and_encode()
485 if (JIT_G(debug) & ZEND_JIT_DEBUG_OPROFILE) { in dasm_link_and_encode()
494 if (JIT_G(debug) & (ZEND_JIT_DEBUG_PERF|ZEND_JIT_DEBUG_PERF_DUMP)) { in dasm_link_and_encode()
500 if (JIT_G(debug) & ZEND_JIT_DEBUG_PERF_DUMP) { in dasm_link_and_encode()
511 if (JIT_G(debug) & ZEND_JIT_DEBUG_VTUNE) { in dasm_link_and_encode()
748 if ((JIT_G(opt_level) >= ZEND_JIT_LEVEL_OPT_FUNC) in zend_jit_op_array_analyze1()
775 if ((JIT_G(opt_level) >= ZEND_JIT_LEVEL_OPT_FUNC) in zend_jit_op_array_analyze2()
1310 if (JIT_G(opt_flags) & ZEND_JIT_REG_ALLOC_GLOBAL) { in zend_jit_compute_liveness()
1910 if (JIT_G(debug) & ZEND_JIT_DEBUG_REG_ALLOC) { in zend_jit_allocate_registers()
1938 if (JIT_G(opt_flags) & ZEND_JIT_REG_ALLOC_GLOBAL) { in zend_jit_allocate_registers()
2052 if (JIT_G(debug) & ZEND_JIT_DEBUG_REG_ALLOC) { in zend_jit_allocate_registers()
2122 if (JIT_G(bisect_limit)) { in zend_jit()
2124 if (jit_bisect_pos >= JIT_G(bisect_limit)) { in zend_jit()
2125 if (jit_bisect_pos == JIT_G(bisect_limit)) { in zend_jit()
2136 if (JIT_G(opt_flags) & (ZEND_JIT_REG_ALLOC_LOCAL|ZEND_JIT_REG_ALLOC_GLOBAL)) { in zend_jit()
2169 } else if (JIT_G(opt_level) < ZEND_JIT_LEVEL_INLINE && in zend_jit()
2231 } else if (JIT_G(opt_level) < ZEND_JIT_LEVEL_INLINE && in zend_jit()
2237 if (JIT_G(opt_flags) & (ZEND_JIT_REG_ALLOC_LOCAL|ZEND_JIT_REG_ALLOC_GLOBAL)) { in zend_jit()
2246 } else if (JIT_G(opt_level) < ZEND_JIT_LEVEL_INLINE && in zend_jit()
2252 if (JIT_G(opt_flags) & (ZEND_JIT_REG_ALLOC_LOCAL|ZEND_JIT_REG_ALLOC_GLOBAL)) { in zend_jit()
2265 if (JIT_G(opt_level) < ZEND_JIT_LEVEL_INLINE) { in zend_jit()
2292 if ((JIT_G(opt_flags) & ZEND_JIT_REG_ALLOC_GLOBAL) && ra) { in zend_jit()
2332 if (JIT_G(opt_level) >= ZEND_JIT_LEVEL_INLINE) { in zend_jit()
3388 if (JIT_G(opt_level) < ZEND_JIT_LEVEL_INLINE) { in zend_jit()
3470 if (JIT_G(opt_level) >= ZEND_JIT_LEVEL_OPT_FUNC) { in zend_jit()
3493 if (JIT_G(opt_level) < ZEND_JIT_LEVEL_INLINE) { in zend_jit()
3536 if (JIT_G(opt_flags) & (ZEND_JIT_REG_ALLOC_LOCAL|ZEND_JIT_REG_ALLOC_GLOBAL)) { in zend_jit()
3545 if (JIT_G(opt_flags) & (ZEND_JIT_REG_ALLOC_LOCAL|ZEND_JIT_REG_ALLOC_GLOBAL)) { in zend_jit()
3555 if (JIT_G(trigger) == ZEND_JIT_ON_FIRST_EXEC || in zend_jit_collect_calls()
3556 JIT_G(trigger) == ZEND_JIT_ON_PROF_REQUEST || in zend_jit_collect_calls()
3557 JIT_G(trigger) == ZEND_JIT_ON_HOT_COUNTERS) { in zend_jit_collect_calls()
3575 if (JIT_G(trigger) == ZEND_JIT_ON_FIRST_EXEC || in zend_jit_cleanup_func_info()
3576 JIT_G(trigger) == ZEND_JIT_ON_PROF_REQUEST || in zend_jit_cleanup_func_info()
3577 JIT_G(trigger) == ZEND_JIT_ON_HOT_COUNTERS) { in zend_jit_cleanup_func_info()
3622 if (JIT_G(opt_level) >= ZEND_JIT_LEVEL_OPT_FUNCS) { in zend_real_jit_func()
3637 if (JIT_G(debug) & ZEND_JIT_DEBUG_SSA) { in zend_real_jit_func()
3717 if (((double)counter / (double)zend_jit_profile_counter) > JIT_G(prof_threshold)) { in zend_jit_check_funcs()
3755 if (JIT_G(hot_func)) { in zend_jit_setup_hot_counters_ex()
3767 if (JIT_G(hot_loop)) { in zend_jit_setup_hot_counters_ex()
3840 if (JIT_G(trigger) == ZEND_JIT_ON_FIRST_EXEC) { in zend_jit_op_array()
3869 } else if (JIT_G(trigger) == ZEND_JIT_ON_PROF_REQUEST) { in zend_jit_op_array()
3899 } else if (JIT_G(trigger) == ZEND_JIT_ON_HOT_COUNTERS) { in zend_jit_op_array()
3901 } else if (JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE) { in zend_jit_op_array()
3903 } else if (JIT_G(trigger) == ZEND_JIT_ON_SCRIPT_LOAD) { in zend_jit_op_array()
3930 if (JIT_G(trigger) == ZEND_JIT_ON_FIRST_EXEC || in zend_jit_script()
3931 JIT_G(trigger) == ZEND_JIT_ON_PROF_REQUEST || in zend_jit_script()
3932 JIT_G(trigger) == ZEND_JIT_ON_HOT_COUNTERS || in zend_jit_script()
3933 JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE) { in zend_jit_script()
3939 } else if (JIT_G(trigger) == ZEND_JIT_ON_SCRIPT_LOAD) { in zend_jit_script()
3970 if (JIT_G(debug) & ZEND_JIT_DEBUG_SSA) { in zend_jit_script()
3997 if (JIT_G(trigger) == ZEND_JIT_ON_FIRST_EXEC in zend_jit_script()
3998 || JIT_G(trigger) == ZEND_JIT_ON_PROF_REQUEST in zend_jit_script()
3999 || JIT_G(trigger) == ZEND_JIT_ON_HOT_COUNTERS in zend_jit_script()
4000 || JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE) { in zend_jit_script()
4020 if (JIT_G(trigger) == ZEND_JIT_ON_SCRIPT_LOAD) { in zend_jit_script()
4032 if (!(JIT_G(debug) & (ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_PERF_DUMP))) { in zend_jit_unprotect()
4043 if (!(JIT_G(debug) & (ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_PERF_DUMP))) { in zend_jit_unprotect()
4063 if (!(JIT_G(debug) & (ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_PERF_DUMP))) { in zend_jit_protect()
4069 if (!(JIT_G(debug) & (ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_PERF_DUMP))) { in zend_jit_protect()
4136 JIT_G(on) = 0; in zend_jit_parse_config_num()
4143 JIT_G(opt_level) = jit % 10; in zend_jit_parse_config_num()
4147 JIT_G(trigger) = jit % 10; in zend_jit_parse_config_num()
4151 JIT_G(opt_flags) = jit % 10; in zend_jit_parse_config_num()
4155 JIT_G(opt_flags) |= ((jit % 10) ? ZEND_JIT_CPU_AVX : 0); in zend_jit_parse_config_num()
4159 JIT_G(on) = 1; in zend_jit_parse_config_num()
4166 if (stage != ZEND_INI_STAGE_STARTUP && !JIT_G(enabled)) { in zend_jit_config()
4175 JIT_G(enabled) = 0; in zend_jit_config()
4176 JIT_G(on) = 0; in zend_jit_config()
4182 JIT_G(enabled) = 1; in zend_jit_config()
4183 JIT_G(on) = 0; in zend_jit_config()
4190 JIT_G(enabled) = 1; in zend_jit_config()
4191 JIT_G(on) = 1; in zend_jit_config()
4192 JIT_G(opt_level) = ZEND_JIT_LEVEL_OPT_FUNCS; in zend_jit_config()
4193 JIT_G(trigger) = ZEND_JIT_ON_HOT_TRACE; in zend_jit_config()
4194 JIT_G(opt_flags) = ZEND_JIT_REG_ALLOC_GLOBAL | ZEND_JIT_CPU_AVX; in zend_jit_config()
4197 JIT_G(enabled) = 1; in zend_jit_config()
4198 JIT_G(on) = 1; in zend_jit_config()
4199 JIT_G(opt_level) = ZEND_JIT_LEVEL_OPT_SCRIPT; in zend_jit_config()
4200 JIT_G(trigger) = ZEND_JIT_ON_SCRIPT_LOAD; in zend_jit_config()
4201 JIT_G(opt_flags) = ZEND_JIT_REG_ALLOC_GLOBAL | ZEND_JIT_CPU_AVX; in zend_jit_config()
4209 JIT_G(enabled) = 1; in zend_jit_config()
4215 JIT_G(enabled) = 0; in zend_jit_config()
4216 JIT_G(on) = 0; in zend_jit_config()
4231 if (JIT_G(enabled) && !JIT_G(symbols) && !zend_jit_disasm_init()) { in zend_jit_debug_config()
4259 JIT_G(enabled) = 0; in zend_jit_check_support()
4260 JIT_G(on) = 0; in zend_jit_check_support()
4268 JIT_G(enabled) = 0; in zend_jit_check_support()
4269 JIT_G(on) = 0; in zend_jit_check_support()
4283 JIT_G(enabled) = 0; in zend_jit_check_support()
4284 JIT_G(on) = 0; in zend_jit_check_support()
4311 if (JIT_G(debug) & ZEND_JIT_DEBUG_OPROFILE) { in zend_jit_startup()
4323 if (JIT_G(debug) & (ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_PERF_DUMP)) { in zend_jit_startup()
4333 if (JIT_G(debug) & (ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_PERF_DUMP)) { in zend_jit_startup()
4366 if (JIT_G(debug) & (ZEND_JIT_DEBUG_ASM|ZEND_JIT_DEBUG_ASM_STUBS)) { in zend_jit_startup()
4375 if (JIT_G(debug) & ZEND_JIT_DEBUG_PERF_DUMP) { in zend_jit_startup()
4414 if (JIT_G(debug) & ZEND_JIT_DEBUG_SIZE) { in zend_jit_shutdown()
4419 if (JIT_G(debug) & ZEND_JIT_DEBUG_OPROFILE) { in zend_jit_shutdown()
4425 if (JIT_G(debug) & ZEND_JIT_DEBUG_GDB) { in zend_jit_shutdown()
4435 if (JIT_G(debug) & ZEND_JIT_DEBUG_PERF_DUMP) { in zend_jit_shutdown()
4439 if (JIT_G(exit_counters)) { in zend_jit_shutdown()
4440 free(JIT_G(exit_counters)); in zend_jit_shutdown()
4456 if (JIT_G(on)) { in zend_jit_activate()
4457 if (JIT_G(trigger) == ZEND_JIT_ON_HOT_COUNTERS) { in zend_jit_activate()
4459 } else if (JIT_G(trigger) == ZEND_JIT_ON_HOT_TRACE) { in zend_jit_activate()
4569 if (JIT_G(debug) & (ZEND_JIT_DEBUG_ASM|ZEND_JIT_DEBUG_ASM_STUBS)) { in zend_jit_restart()