]> granicus.if.org Git - php/commitdiff
Hint label lookup table initialization branch on GOTO VM kind.
authorBogdan Andone <bogdan.andone@intel.com>
Tue, 30 Jun 2015 07:58:17 +0000 (10:58 +0300)
committerBogdan Andone <bogdan.andone@intel.com>
Fri, 10 Jul 2015 08:18:40 +0000 (11:18 +0300)
This initialization is performed only once so it shall be marked as unexpected.

Zend/zend_vm_gen.php

index 250b2467e0db8266935b9085005a8727b24dd10a..36c4a32f5ce9290f4db874b1c4196c6db5fabab1 100644 (file)
@@ -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");