1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 17:22:15 +01:00

- Change opcode dispatch mechanism to use a function per opcode and use

- a lookup table using the opcode # to call the correct function.
- Still have lots of tuning to do.
This commit is contained in:
Andi Gutmans
2002-10-18 21:19:27 +00:00
parent 4b83b189fe
commit cf36abb2eb
3 changed files with 2630 additions and 1999 deletions

View File

@@ -390,6 +390,7 @@ static void scanner_globals_ctor(zend_scanner_globals *scanner_globals_p TSRMLS_
scanner_globals_p->yy_start_stack = 0;
}
void zend_init_opcodes_handlers();
int zend_startup(zend_utility_functions *utility_functions, char **extensions, int start_builtin_functions)
{
@@ -435,6 +436,8 @@ int zend_startup(zend_utility_functions *utility_functions, char **extensions, i
zend_compile_file = compile_file;
zend_execute = execute;
zend_init_opcodes_handlers();
/* set up version */
zend_version_info = strdup(ZEND_CORE_VERSION_INFO);
zend_version_info_length = sizeof(ZEND_CORE_VERSION_INFO)-1;

View File

@@ -81,7 +81,7 @@ void zend_init_compiler_data_structures(TSRMLS_D)
CG(in_compilation) = 0;
init_compiler_declarables(TSRMLS_C);
CG(throw_list) = NULL;
zend_register_auto_global("GLOBALS", sizeof("GLOBALS")-1 TSRMLS_CC);
zend_register_auto_global("GLOBALS", sizeof("GLOBALS")-1 TSRMLS_CC);
CG(in_clone_method) = 0;
}

File diff suppressed because it is too large Load Diff