diff options
author | Dmitry Stogov <dmitry@zend.com> | 2014-07-02 22:01:25 +0400 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2014-07-02 22:01:25 +0400 |
commit | 412ad4b25417d261c0a8c43f788d5c110593d891 (patch) | |
tree | 43a257a7d074bf976c02d0d35da80fde24f54705 /Zend/zend_execute.h | |
parent | 0b1cfdf390632a0bf0b27516399b09813500c299 (diff) | |
download | php-git-412ad4b25417d261c0a8c43f788d5c110593d891.tar.gz |
Uinified call frame handling for user and internal functions.
Now EG(current_execute_data) always point to the call frame of the currently executed function.
Diffstat (limited to 'Zend/zend_execute.h')
-rw-r--r-- | Zend/zend_execute.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h index 40f42ae2dd..9bcdbc3f30 100644 --- a/Zend/zend_execute.h +++ b/Zend/zend_execute.h @@ -272,35 +272,6 @@ static zend_always_inline void zend_vm_stack_free_call_frame(zend_execute_data * } } -static zend_always_inline int zend_vm_stack_get_args_count_ex(zend_execute_data *ex) -{ - return ex->call->num_args; -} - -static zend_always_inline zval* zend_vm_stack_get_arg_ex(zend_execute_data *ex, int requested_arg) -{ - int arg_count = ex->call->num_args; - - if (UNEXPECTED(requested_arg > arg_count)) { - return NULL; - } - return ZEND_CALL_ARG(ex->call, requested_arg); -} - -static zend_always_inline int zend_vm_stack_get_args_count(TSRMLS_D) -{ - if (EG(current_execute_data)->prev_execute_data) { - return zend_vm_stack_get_args_count_ex(EG(current_execute_data)->prev_execute_data); - } else { - return 0; - } -} - -static zend_always_inline zval* zend_vm_stack_get_arg(int requested_arg TSRMLS_DC) -{ - return zend_vm_stack_get_arg_ex(EG(current_execute_data)->prev_execute_data, requested_arg); -} - void execute_new_code(TSRMLS_D); |