diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-05-08 01:31:49 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-05-08 01:31:49 +0300 |
commit | b8a91ac50b1d30fc1f178eb70a55b7c6b205eb32 (patch) | |
tree | e7ba3db75218bd209caa9b3d0fe4ebdc3c747580 | |
parent | 1e00b767a41b2e736feb7dc6aeb33ce4c9030494 (diff) | |
download | php-git-b8a91ac50b1d30fc1f178eb70a55b7c6b205eb32.tar.gz |
Use "fastcall" calling convention
-rw-r--r-- | Zend/zend_vm_execute.h | 2 | ||||
-rw-r--r-- | Zend/zend_vm_gen.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_vm_execute.h b/Zend/zend_vm_execute.h index c72ebebc72..2101b04444 100644 --- a/Zend/zend_vm_execute.h +++ b/Zend/zend_vm_execute.h @@ -64231,7 +64231,7 @@ ZEND_API int zend_vm_kind(void) return ZEND_VM_KIND; } -static const void *zend_vm_get_opcode_handler_ex(uint32_t spec, const zend_op* op) +static const void* ZEND_FASTCALL zend_vm_get_opcode_handler_ex(uint32_t spec, const zend_op* op) { static const int zend_vm_decode[] = { _UNUSED_CODE, /* 0 = IS_UNUSED */ diff --git a/Zend/zend_vm_gen.php b/Zend/zend_vm_gen.php index cf54375732..07c09afec2 100644 --- a/Zend/zend_vm_gen.php +++ b/Zend/zend_vm_gen.php @@ -2572,7 +2572,7 @@ function gen_vm($def, $skel) { gen_executor($f, $skl, ZEND_VM_SPEC, ZEND_VM_KIND, "execute", "zend_vm_init"); // Generate zend_vm_get_opcode_handler() function - out($f, "static const void *zend_vm_get_opcode_handler_ex(uint32_t spec, const zend_op* op)\n"); + out($f, "static const void* ZEND_FASTCALL zend_vm_get_opcode_handler_ex(uint32_t spec, const zend_op* op)\n"); out($f, "{\n"); if (!ZEND_VM_SPEC) { out($f, "\treturn zend_opcode_handlers[spec];\n"); |