Skip to content

Commit ae22a62

Browse files
committed
ext/opcache/jit/zend_jit_trace: make zend_jit_trace_exit() static
Only used in zend_jit_*.dasc, which is the same compilation unit. For these, this commit adds a (static) forward declaration.
1 parent 700d23d commit ae22a62

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,8 @@ typedef enum _sp_adj_kind {
756756

757757
static int sp_adj[SP_ADJ_LAST];
758758

759+
static int ZEND_FASTCALL zend_jit_trace_exit(uint32_t exit_num, zend_jit_registers_buf *regs);
760+
759761
/* The generated code may contain tautological comparisons, ignore them. */
760762
#if defined(__clang__)
761763
# pragma clang diagnostic push

ext/opcache/jit/zend_jit_internal.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,6 @@ ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_jit_ret_trace_helper(ZEND_OPCODE_HAND
707707
ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_jit_loop_trace_helper(ZEND_OPCODE_HANDLER_ARGS);
708708

709709
int ZEND_FASTCALL zend_jit_trace_hot_root(zend_execute_data *execute_data, const zend_op *opline);
710-
int ZEND_FASTCALL zend_jit_trace_exit(uint32_t exit_num, zend_jit_registers_buf *regs);
711710
zend_jit_trace_stop ZEND_FASTCALL zend_jit_trace_execute(zend_execute_data *execute_data, const zend_op *opline, zend_jit_trace_rec *trace_buffer, uint8_t start, uint32_t is_megamorphc);
712711

713712
static zend_always_inline const zend_op* zend_jit_trace_get_exit_opline(zend_jit_trace_rec *trace, const zend_op *opline, bool *exit_if_true)

ext/opcache/jit/zend_jit_trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8032,7 +8032,7 @@ static int zend_jit_trace_hot_side(zend_execute_data *execute_data, uint32_t par
80328032
return ret;
80338033
}
80348034

8035-
int ZEND_FASTCALL zend_jit_trace_exit(uint32_t exit_num, zend_jit_registers_buf *regs)
8035+
static int ZEND_FASTCALL zend_jit_trace_exit(uint32_t exit_num, zend_jit_registers_buf *regs)
80368036
{
80378037
uint32_t trace_num = EG(jit_trace_num);
80388038
zend_execute_data *execute_data = EG(current_execute_data);

0 commit comments

Comments
 (0)