From: Dmitry Stogov Date: Tue, 16 Jan 2018 11:13:49 +0000 (+0300) Subject: Inline function X-Git-Tag: php-7.3.0alpha1~614 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e229e7b657af10996669793ac589f216aa0cc3d0;p=php Inline function --- diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index e26faf89eb..f53cc18c15 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -765,7 +765,6 @@ ZEND_API int zend_unmangle_property_name_ex(const zend_string *name, const char zend_op *get_next_op(zend_op_array *op_array); void init_op(zend_op *op); -uint32_t get_next_op_number(zend_op_array *op_array); ZEND_API int pass_two(zend_op_array *op_array); zend_brk_cont_element *get_next_brk_cont_element(void); ZEND_API zend_bool zend_is_compiling(void); @@ -775,6 +774,11 @@ uint32_t zend_get_class_fetch_type(zend_string *name); ZEND_API zend_uchar zend_get_call_op(const zend_op *init_op, zend_function *fbc); ZEND_API int zend_is_smart_branch(zend_op *opline); +static zend_always_inline uint32_t get_next_op_number(zend_op_array *op_array) +{ + return op_array->last; +} + typedef zend_bool (*zend_auto_global_callback)(zend_string *name); typedef struct _zend_auto_global { zend_string *name; diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c index 84470a59e4..e814052ab4 100644 --- a/Zend/zend_opcode.c +++ b/Zend/zend_opcode.c @@ -478,11 +478,6 @@ zend_op *get_next_op(zend_op_array *op_array) return next_op; } -uint32_t get_next_op_number(zend_op_array *op_array) -{ - return op_array->last; -} - zend_brk_cont_element *get_next_brk_cont_element(void) { CG(context).last_brk_cont++;