summaryrefslogtreecommitdiff
path: root/Zend/zend_vm_execute.skl
diff options
context:
space:
mode:
authorSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
committerSVN Migration <svn@php.net>2006-10-15 21:09:28 +0000
commit88ec761548b66f58acc1a86cdd0fc164ca925476 (patch)
treed0af978fa00d83bb1d82c613f66477fbd6bb18aa /Zend/zend_vm_execute.skl
parent268984b4787e797db6054313fc9ba3b9e845306e (diff)
downloadphp-git-PECL_OPENSSL.tar.gz
This commit was manufactured by cvs2svn to create branch 'PECL_OPENSSL'.PECL_OPENSSL
Diffstat (limited to 'Zend/zend_vm_execute.skl')
-rw-r--r--Zend/zend_vm_execute.skl77
1 files changed, 0 insertions, 77 deletions
diff --git a/Zend/zend_vm_execute.skl b/Zend/zend_vm_execute.skl
deleted file mode 100644
index 9a3bd5038d..0000000000
--- a/Zend/zend_vm_execute.skl
+++ /dev/null
@@ -1,77 +0,0 @@
-{%DEFINES%}
-
-ZEND_API void {%EXECUTOR_NAME%}(zend_op_array *op_array TSRMLS_DC)
-{
- zend_execute_data execute_data;
- {%HELPER_VARS%}
-
- {%INTERNAL_LABELS%}
-
- if (EG(exception)) {
- return;
- }
-
- /* Initialize execute_data */
- EX(fbc) = NULL;
- EX(object) = NULL;
- EX(old_error_reporting) = NULL;
- if (op_array->T < TEMP_VAR_STACK_LIMIT) {
- EX(Ts) = (temp_variable *) do_alloca(sizeof(temp_variable) * op_array->T);
- } else {
- EX(Ts) = (temp_variable *) safe_emalloc(sizeof(temp_variable), op_array->T, 0);
- }
- EX(CVs) = (zval***)do_alloca(sizeof(zval**) * op_array->last_var);
- memset(EX(CVs), 0, sizeof(zval**) * op_array->last_var);
- EX(op_array) = op_array;
- EX(original_in_execution) = EG(in_execution);
- EX(symbol_table) = EG(active_symbol_table);
- EX(prev_execute_data) = EG(current_execute_data);
- EG(current_execute_data) = &execute_data;
-
- EG(in_execution) = 1;
- if (op_array->start_op) {
- ZEND_VM_SET_OPCODE(op_array->start_op);
- } else {
- ZEND_VM_SET_OPCODE(op_array->opcodes);
- }
-
- if (op_array->uses_this && EG(This)) {
- EG(This)->refcount++; /* For $this pointer */
- if (zend_hash_add(EG(active_symbol_table), "this", sizeof("this"), &EG(This), sizeof(zval *), NULL)==FAILURE) {
- EG(This)->refcount--;
- }
- }
-
- EG(opline_ptr) = &EX(opline);
-
- EX(function_state).function = (zend_function *) op_array;
- EG(function_state_ptr) = &EX(function_state);
-#if ZEND_DEBUG
- /* function_state.function_symbol_table is saved as-is to a stack,
- * which is an intentional UMR. Shut it up if we're in DEBUG.
- */
- EX(function_state).function_symbol_table = NULL;
-#endif
-
- while (1) {
- {%ZEND_VM_CONTINUE_LABEL%}
-#ifdef ZEND_WIN32
- if (EG(timed_out)) {
- zend_timeout(0);
- }
-#endif
-
- {%ZEND_VM_DISPATCH%} {
- {%INTERNAL_EXECUTOR%}
- }
-
- }
- zend_error_noreturn(E_ERROR, "Arrived at end of main loop which shouldn't happen");
-}
-
-{%EXTERNAL_EXECUTOR%}
-
-void {%INITIALIZER_NAME%}()
-{
- {%EXTERNAL_LABELS%}
-}