Download src/php/php-src/ext/opcache/jit/zend_jit.h from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 7.96 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/jit/zend_jit.h
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/opcache/jit/zend_jit.h
-
curl -L -o zend_jit.h https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/opcache/jit/zend_jit.h
7.96 kB
| /* | |
| +----------------------------------------------------------------------+ | |
| | Zend JIT | | |
| +----------------------------------------------------------------------+ | |
| | Copyright (c) The PHP Group | | |
| +----------------------------------------------------------------------+ | |
| | This source file is subject to version 3.01 of the PHP license, | | |
| | that is bundled with this package in the file LICENSE, and is | | |
| | available through the world-wide-web at the following url: | | |
| | https://www.php.net/license/3_01.txt | | |
| | If you did not receive a copy of the PHP license and are unable to | | |
| | obtain it through the world-wide-web, please send a note to | | |
| | license@php.net so we can mail you a copy immediately. | | |
| +----------------------------------------------------------------------+ | |
| | Authors: Dmitry Stogov <dmitry@php.net> | | |
| +----------------------------------------------------------------------+ | |
| */ | |
| typedef struct _zend_jit_trace_rec zend_jit_trace_rec; | |
| typedef struct _zend_jit_trace_stack_frame zend_jit_trace_stack_frame; | |
| typedef struct _sym_node zend_sym_node; | |
| extern bool zend_jit_startup_ok; | |
| typedef struct _zend_jit_globals { | |
| bool enabled; | |
| bool on; | |
| uint8_t trigger; | |
| uint8_t opt_level; | |
| uint32_t opt_flags; | |
| const char *options; | |
| zend_long buffer_size; | |
| zend_long debug; | |
| zend_long bisect_limit; | |
| double prof_threshold; | |
| zend_long max_root_traces; /* max number of root traces */ | |
| zend_long max_side_traces; /* max number of side traces (per root trace) */ | |
| zend_long max_exit_counters; /* max total number of side exits for all traces */ | |
| zend_long hot_loop; | |
| zend_long hot_func; | |
| zend_long hot_return; | |
| zend_long hot_side_exit; /* number of exits before taking side trace */ | |
| zend_long blacklist_root_trace; /* number of attempts to JIT a root trace before blacklist it */ | |
| zend_long blacklist_side_trace; /* number of attempts to JIT a side trace before blacklist it */ | |
| zend_long max_loop_unrolls; /* max number of unrolled loops */ | |
| zend_long max_recursive_calls; /* max number of recursive inlined call unrolls */ | |
| zend_long max_recursive_returns; /* max number of recursive inlined return unrolls */ | |
| zend_long max_polymorphic_calls; /* max number of inlined polymorphic calls */ | |
| zend_long max_trace_length; /* max length of a single trace */ | |
| zend_sym_node *symbols; /* symbols for disassembler */ | |
| bool tracing; | |
| zend_jit_trace_rec *current_trace; | |
| zend_jit_trace_stack_frame *current_frame; | |
| const zend_op *bad_root_cache_opline[ZEND_JIT_TRACE_BAD_ROOT_SLOTS]; | |
| uint8_t bad_root_cache_count[ZEND_JIT_TRACE_BAD_ROOT_SLOTS]; | |
| uint8_t bad_root_cache_stop[ZEND_JIT_TRACE_BAD_ROOT_SLOTS]; | |
| uint32_t bad_root_slot; | |
| uint8_t *exit_counters; | |
| } zend_jit_globals; | |
| extern int jit_globals_id; | |
| extern zend_jit_globals jit_globals; | |
| int zend_jit_op_array(zend_op_array *op_array, zend_script *script); | |
| int zend_jit_script(zend_script *script); | |
| void zend_jit_unprotect(void); | |
| void zend_jit_protect(void); | |
| void zend_jit_init(void); | |
| int zend_jit_config(zend_string *jit_options, int stage); | |
| int zend_jit_debug_config(zend_long old_val, zend_long new_val, int stage); | |
| int zend_jit_check_support(void); | |
| void zend_jit_startup(void *jit_buffer, size_t size, bool reattached); | |
| void zend_jit_shutdown(void); | |
| void zend_jit_activate(void); | |
| void zend_jit_deactivate(void); | |
| ZEND_EXT_API void zend_jit_status(zval *ret); | |
| ZEND_EXT_API void zend_jit_blacklist_function(zend_op_array *op_array); | |
| void zend_jit_restart(void); | |