summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-10-07 18:12:09 +0400
committerDmitry Stogov <dmitry@zend.com>2014-10-07 18:12:09 +0400
commit75b5dc63695775f6b7a5aa862efbc9766ce642d2 (patch)
tree0863e03379b7f6e208a846230d7b48e3adb99391
parent67be34ec95d48d7b5ce85200f96ce05e8d409f99 (diff)
downloadphp-git-75b5dc63695775f6b7a5aa862efbc9766ce642d2.tar.gz
Reorder fields for better alignment on both 32-bit and 64-bit systems
-rw-r--r--Zend/zend_compile.h6
-rw-r--r--Zend/zend_execute.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h
index 55100ac5ec..089c15f48a 100644
--- a/Zend/zend_compile.h
+++ b/Zend/zend_compile.h
@@ -360,11 +360,11 @@ struct _zend_execute_data {
zend_execute_data *call; /* current call */
void **run_time_cache;
zend_function *func; /* executed op_array */
- uint32_t num_args;
- uint32_t frame_info;
- zend_class_entry *called_scope;
zval This;
+ zend_class_entry *called_scope;
zend_execute_data *prev_execute_data;
+ uint32_t frame_info;
+ uint32_t num_args;
zval *return_value;
zend_class_entry *scope; /* function scope (self) */
zend_array *symbol_table;
diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h
index a17af14da0..9c620864dd 100644
--- a/Zend/zend_execute.h
+++ b/Zend/zend_execute.h
@@ -215,11 +215,11 @@ static zend_always_inline zend_execute_data *zend_vm_stack_push_call_frame(uint3
}
call = (zend_execute_data*)zend_vm_stack_alloc(used_stack * sizeof(zval) TSRMLS_CC);
call->func = func;
- call->num_args = 0;
- call->frame_info = frame_info;
- call->called_scope = called_scope;
ZVAL_OBJ(&call->This, object);
+ call->called_scope = called_scope;
call->prev_execute_data = prev;
+ call->frame_info = frame_info;
+ call->num_args = 0;
return call;
}