From: Dmitry Stogov Date: Mon, 7 May 2018 22:31:49 +0000 (+0300) Subject: Use "fastcall" calling convention X-Git-Tag: php-7.3.0alpha1~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b8a91ac50b1d30fc1f178eb70a55b7c6b205eb32;p=php Use "fastcall" calling convention --- 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");