php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zend_func_info.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Zend Engine, Func Info |
4 +----------------------------------------------------------------------+
5 | Copyright (c) The PHP Group |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | https://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
15 | Authors: Dmitry Stogov <dmitry@php.net> |
16 +----------------------------------------------------------------------+
17*/
18
19#ifndef ZEND_FUNC_INFO_H
20#define ZEND_FUNC_INFO_H
21
22#include "zend_ssa.h"
23
24/* func/cfg flags */
25#define ZEND_FUNC_INDIRECT_VAR_ACCESS (1<<0) /* accesses variables by name */
26#define ZEND_FUNC_HAS_CALLS (1<<1)
27#define ZEND_FUNC_VARARG (1<<2) /* uses func_get_args() */
28#define ZEND_FUNC_NO_LOOPS (1<<3)
29#define ZEND_FUNC_IRREDUCIBLE (1<<4)
30#define ZEND_FUNC_FREE_LOOP_VAR (1<<5)
31#define ZEND_FUNC_RECURSIVE (1<<7)
32#define ZEND_FUNC_RECURSIVE_DIRECTLY (1<<8)
33#define ZEND_FUNC_RECURSIVE_INDIRECTLY (1<<9)
34#define ZEND_FUNC_HAS_EXTENDED_FCALL (1<<10)
35#define ZEND_FUNC_HAS_EXTENDED_STMT (1<<11)
36#define ZEND_SSA_TSSA (1<<12) /* used by tracing JIT */
37
38#define ZEND_FUNC_JIT_ON_FIRST_EXEC (1<<13) /* used by JIT */
39#define ZEND_FUNC_JIT_ON_PROF_REQUEST (1<<14) /* used by JIT */
40#define ZEND_FUNC_JIT_ON_HOT_COUNTERS (1<<15) /* used by JIT */
41#define ZEND_FUNC_JIT_ON_HOT_TRACE (1<<16) /* used by JIT */
42
43
46
47#define ZEND_FUNC_INFO(op_array) \
48 ((zend_func_info*)((op_array)->reserved[zend_func_info_rid]))
49
50#define ZEND_SET_FUNC_INFO(op_array, info) do { \
51 zend_func_info** pinfo = (zend_func_info**)&(op_array)->reserved[zend_func_info_rid]; \
52 *pinfo = info; \
53 } while (0)
54
56
58
60 const zend_function *callee_func, const zend_call_info *call_info, const zend_ssa *ssa);
62 const zend_call_info *call_info, const zend_ssa *ssa,
63 zend_class_entry **ce, bool *ce_is_instanceof);
64
67
69
70#endif /* ZEND_FUNC_INFO_H */
zend_function * callee_func
#define ZEND_API
union _zend_function zend_function
uint32_t zend_get_internal_func_info(const zend_function *callee_func, const zend_call_info *call_info, const zend_ssa *ssa)
zend_result zend_func_info_startup(void)
ZEND_API int zend_func_info_rid
zend_result zend_func_info_shutdown(void)
ZEND_API uint32_t zend_get_func_info(const zend_call_info *call_info, const zend_ssa *ssa, zend_class_entry **ce, bool *ce_is_instanceof)
struct _zend_call_info zend_call_info
struct _zend_func_info zend_func_info
#define END_EXTERN_C()
#define BEGIN_EXTERN_C()
struct _zend_class_entry zend_class_entry
struct _zend_ssa zend_ssa
ZEND_RESULT_CODE zend_result
Definition zend_types.h:64
uint32_t call_info