com php-src: Hint label lookup table initialization branch on GOTO VM kind.: Zend/zend_vm_gen.php
| From: | Xinchen Hui | Date: | Fri, 10 Jul 2015 08:18:40 +0000 |
| Subject: | com php-src: Hint label lookup table initialization branch on GOTO VM kind.: Zend/zend_vm_gen.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87949@lists.php.net to get a copy of this message | ||
Commit: e27cbe6542eea5ab5ff472ee7e2a5cda3639edaf
Author: Bogdan Andone <bogdan.andone@intel.com> Tue, 30 Jun 2015 10:58:17 +0300
Parents: a3f05d640d73d61c1978446adb1217f40356d037
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e27cbe6542eea5ab5ff472ee7e2a5cda3639edaf
Log:
Hint label lookup table initialization branch on GOTO VM kind.
This initialization is performed only once so it shall be marked as unexpected.
Changed paths:
M Zend/zend_vm_gen.php
Diff:
diff --git a/Zend/zend_vm_gen.php b/Zend/zend_vm_gen.php
index 250b246..36c4a32 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");