Skip to content

Commit 4b7da22

Browse files
committed
Pass zend_jit_ctx to zend_jit_trace_get_exit_point()
1 parent 76d7c61 commit 4b7da22

File tree

4 files changed

+82
-79
lines changed

4 files changed

+82
-79
lines changed

ext/opcache/jit/zend_jit.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ static ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_runtime_jit(ZEND_OPCODE_HANDLE
102102

103103
static int zend_jit_trace_op_len(const zend_op *opline);
104104
static int zend_jit_trace_may_exit(const zend_op_array *op_array, const zend_op *opline);
105-
static uint32_t zend_jit_trace_get_exit_point(const zend_op *to_opline, uint32_t flags);
105+
106+
static uint32_t zend_jit_trace_get_exit_point(zend_jit_ctx *ctx, const zend_op *to_opline, uint32_t flags);
106107
static const void *zend_jit_trace_get_exit_addr(uint32_t n);
107108
static void zend_jit_trace_add_code(const void *start, uint32_t size);
108109
static zend_string *zend_jit_func_name(const zend_op_array *op_array);

ext/opcache/jit/zend_jit_internal.h

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include "Zend/Optimizer/zend_func_info.h"
2828
#include "Zend/Optimizer/zend_call_graph.h"
2929

30+
typedef struct _zend_jit_ctx zend_jit_ctx;
31+
3032
/* Address Encoding */
3133
typedef uintptr_t zend_jit_addr;
3234

0 commit comments

Comments
 (0)