From 64a79817ce829b2d474e5e8aca87e2ecd1fadfb7 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 30 Sep 2015 16:22:56 +0300 Subject: [PATCH] Reordered field to improve data lacality and reduce L1D CPU cache misses in ZEND_INIT_FCALL opcode family --- Zend/zend_compile.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index c29f8766e6..68cc39ad84 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -431,17 +431,17 @@ struct _zend_execute_data { const zend_op *opline; /* executed opline */ zend_execute_data *call; /* current call */ zval *return_value; - zend_function *func; /* executed op_array */ - zval This; -#if ZEND_EX_USE_RUN_TIME_CACHE - void **run_time_cache; -#endif -#if ZEND_EX_USE_LITERALS - zval *literals; -#endif + zend_function *func; /* executed funcrion */ + zval This; /* this + call_info + num_args */ zend_class_entry *called_scope; zend_execute_data *prev_execute_data; zend_array *symbol_table; +#if ZEND_EX_USE_RUN_TIME_CACHE + void **run_time_cache; /* cache op_array->run_time_cache */ +#endif +#if ZEND_EX_USE_LITERALS + zval *literals; /* cache op_array->literals */ +#endif }; #define ZEND_CALL_FUNCTION (0 << 0)