Skip to content

Commit c34d29d

Browse files
committed
Change parameter meaning.
1 parent dcedc31 commit c34d29d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ static void *dasm_link_and_encode(dasm_State **dasm_state,
245245
const zend_op *rt_opline,
246246
zend_lifetime_interval **ra,
247247
const char *name,
248-
zend_bool is_trace)
248+
uint32_t trace_num)
249249
{
250250
size_t size;
251251
int ret;
@@ -314,7 +314,7 @@ static void *dasm_link_and_encode(dasm_State **dasm_state,
314314
entry = *dasm_ptr;
315315
*dasm_ptr = (void*)((char*)*dasm_ptr + ZEND_MM_ALIGNED_SIZE_EX(size, DASM_ALIGNMENT));
316316

317-
if (is_trace) {
317+
if (trace_num) {
318318
zend_jit_trace_add_code(entry, size);
319319
}
320320

@@ -368,7 +368,7 @@ static void *dasm_link_and_encode(dasm_State **dasm_state,
368368
} else {
369369
if (ZCG(accel_directives).jit_debug & (ZEND_JIT_DEBUG_ASM_STUBS|ZEND_JIT_DEBUG_ASM)) {
370370
zend_jit_disasm_add_symbol(name, (uintptr_t)entry, size);
371-
if (is_trace || (ZCG(accel_directives).jit_debug & ZEND_JIT_DEBUG_ASM_STUBS) != 0) {
371+
if (trace_num || (ZCG(accel_directives).jit_debug & ZEND_JIT_DEBUG_ASM_STUBS) != 0) {
372372
zend_jit_disasm(
373373
name,
374374
(op_array && op_array->filename) ? ZSTR_VAL(op_array->filename) : NULL,

ext/opcache/jit/zend_jit_trace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4014,7 +4014,7 @@ static const void *zend_jit_trace(zend_jit_trace_rec *trace_buffer, uint32_t par
40144014
goto jit_failure;
40154015
}
40164016

4017-
handler = dasm_link_and_encode(&dasm_state, NULL, NULL, NULL, NULL, ZSTR_VAL(name), 1);
4017+
handler = dasm_link_and_encode(&dasm_state, NULL, NULL, NULL, NULL, ZSTR_VAL(name), ZEND_JIT_TRACE_NUM);
40184018

40194019
jit_failure:
40204020
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
41064106

41074107
zend_jit_trace_return(&dasm_state, original_handler);
41084108

4109-
handler = dasm_link_and_encode(&dasm_state, NULL, NULL, NULL, NULL, name, 1);
4109+
handler = dasm_link_and_encode(&dasm_state, NULL, NULL, NULL, NULL, name, ZEND_JIT_TRACE_NUM);
41104110

41114111
jit_failure:
41124112
dasm_free(&dasm_state);

0 commit comments

Comments
 (0)