From b8a91ac50b1d30fc1f178eb70a55b7c6b205eb32 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 8 May 2018 01:31:49 +0300 Subject: [PATCH] Use "fastcall" calling convention --- Zend/zend_vm_execute.h | 2 +- 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"); -- 2.40.0