Browse Source

Reorder fields for better alignment on both 32-bit and 64-bit systems

pull/825/merge
Dmitry Stogov 12 years ago
parent
commit
75b5dc6369
  1. 6
      Zend/zend_compile.h
  2. 6
      Zend/zend_execute.h

6
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;

6
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;
}

Loading…
Cancel
Save