From: Bogdan Andone Date: Tue, 30 Jun 2015 07:58:17 +0000 (+0300) Subject: Hint label lookup table initialization branch on GOTO VM kind. X-Git-Tag: php-7.1.1RC1~35^2~12^2~2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e27cbe6542eea5ab5ff472ee7e2a5cda3639edaf;p=php Hint label lookup table initialization branch on GOTO VM kind. This initialization is performed only once so it shall be marked as unexpected. --- diff --git a/Zend/zend_vm_gen.php b/Zend/zend_vm_gen.php index 250b2467e0..36c4a32f5c 100644 --- a/Zend/zend_vm_gen.php +++ b/Zend/zend_vm_gen.php @@ -1189,7 +1189,7 @@ function gen_executor($f, $skl, $spec, $kind, $executor_name, $initializer_name) // Emit array of labels of opcode handlers and code for // zend_opcode_handlers initialization $prolog = $m[1]; - out($f,$prolog."if (execute_data == NULL) {\n"); + out($f,$prolog."if (UNEXPECTED(execute_data == NULL)) {\n"); out($f,$prolog."\tstatic const void* labels[] = {\n"); gen_labels($f, $spec, $kind, $prolog."\t\t"); out($f,$prolog."\t};\n");