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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
4624
Zend/zend_execute.c
4624
Zend/zend_execute.c
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user