From: Dmitry Stogov Date: Thu, 7 May 2020 22:24:02 +0000 (+0300) Subject: Change parameter meaning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c34d29db33593def717b3668aa60e2b425aaa634;p=php Change parameter meaning. --- diff --git a/ext/opcache/jit/zend_jit.c b/ext/opcache/jit/zend_jit.c index 96d0be4230..5f7d12c116 100644 --- a/ext/opcache/jit/zend_jit.c +++ b/ext/opcache/jit/zend_jit.c @@ -245,7 +245,7 @@ static void *dasm_link_and_encode(dasm_State **dasm_state, const zend_op *rt_opline, zend_lifetime_interval **ra, const char *name, - zend_bool is_trace) + uint32_t trace_num) { size_t size; int ret; @@ -314,7 +314,7 @@ static void *dasm_link_and_encode(dasm_State **dasm_state, entry = *dasm_ptr; *dasm_ptr = (void*)((char*)*dasm_ptr + ZEND_MM_ALIGNED_SIZE_EX(size, DASM_ALIGNMENT)); - if (is_trace) { + if (trace_num) { zend_jit_trace_add_code(entry, size); } @@ -368,7 +368,7 @@ static void *dasm_link_and_encode(dasm_State **dasm_state, } else { if (ZCG(accel_directives).jit_debug & (ZEND_JIT_DEBUG_ASM_STUBS|ZEND_JIT_DEBUG_ASM)) { zend_jit_disasm_add_symbol(name, (uintptr_t)entry, size); - if (is_trace || (ZCG(accel_directives).jit_debug & ZEND_JIT_DEBUG_ASM_STUBS) != 0) { + if (trace_num || (ZCG(accel_directives).jit_debug & ZEND_JIT_DEBUG_ASM_STUBS) != 0) { zend_jit_disasm( name, (op_array && op_array->filename) ? ZSTR_VAL(op_array->filename) : NULL, diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index 5523ecacbd..ac51f9673e 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -4014,7 +4014,7 @@ done: goto jit_failure; } - handler = dasm_link_and_encode(&dasm_state, NULL, NULL, NULL, NULL, ZSTR_VAL(name), 1); + handler = dasm_link_and_encode(&dasm_state, NULL, NULL, NULL, NULL, ZSTR_VAL(name), ZEND_JIT_TRACE_NUM); jit_failure: dasm_free(&dasm_state); @@ -4106,7 +4106,7 @@ static const void *zend_jit_trace_exit_to_vm(uint32_t trace_num, uint32_t exit_n zend_jit_trace_return(&dasm_state, original_handler); - handler = dasm_link_and_encode(&dasm_state, NULL, NULL, NULL, NULL, name, 1); + handler = dasm_link_and_encode(&dasm_state, NULL, NULL, NULL, NULL, name, ZEND_JIT_TRACE_NUM); jit_failure: dasm_free(&dasm_state);