mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Add function exposing HAVE_GCC_GLOBAL_REGS (#8359)
This commit is contained in:
@@ -229,6 +229,15 @@ ZEND_API zval* zend_get_compiled_variable_value(const zend_execute_data *execute
|
||||
return EX_VAR(var);
|
||||
}
|
||||
|
||||
ZEND_API bool zend_gcc_global_regs(void)
|
||||
{
|
||||
#if defined(HAVE_GCC_GLOBAL_REGS)
|
||||
return 1;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
static zend_always_inline zval *_get_zval_ptr_tmp(uint32_t var EXECUTE_DATA_DC)
|
||||
{
|
||||
zval *ret = EX_VAR(var);
|
||||
|
||||
@@ -360,6 +360,8 @@ ZEND_API void zend_fetch_dimension_const(zval *result, zval *container, zval *di
|
||||
|
||||
ZEND_API zval* zend_get_compiled_variable_value(const zend_execute_data *execute_data_ptr, uint32_t var);
|
||||
|
||||
ZEND_API bool zend_gcc_global_regs(void);
|
||||
|
||||
#define ZEND_USER_OPCODE_CONTINUE 0 /* execute next opcode */
|
||||
#define ZEND_USER_OPCODE_RETURN 1 /* exit from executor (return from function) */
|
||||
#define ZEND_USER_OPCODE_DISPATCH 2 /* call original opcode handler */
|
||||
|
||||
@@ -29,6 +29,7 @@ ZEND_API const void* ZEND_FASTCALL zend_get_opcode_handler_func(const zend_op *o
|
||||
ZEND_API const zend_op *zend_get_halt_op(void);
|
||||
ZEND_API int ZEND_FASTCALL zend_vm_call_opcode_handler(zend_execute_data *ex);
|
||||
ZEND_API int zend_vm_kind(void);
|
||||
ZEND_API bool zend_gcc_global_regs(void);
|
||||
|
||||
void zend_vm_init(void);
|
||||
void zend_vm_dtor(void);
|
||||
|
||||
Reference in New Issue
Block a user