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;
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);
}
} 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,
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);
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);