]> granicus.if.org Git - php/commitdiff
Use "fastcall" calling convention
authorDmitry Stogov <dmitry@zend.com>
Mon, 7 May 2018 22:31:49 +0000 (01:31 +0300)
committerDmitry Stogov <dmitry@zend.com>
Mon, 7 May 2018 22:31:49 +0000 (01:31 +0300)
Zend/zend_vm_execute.h
Zend/zend_vm_gen.php

index c72ebebc72dbdc4add9c0e03b4cb665813e51f86..2101b04444753cc0e2863b7b660837897ced2980 100644 (file)
@@ -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  */
index cf54375732465dff53f06bdad651e4beaf93c4af..07c09afec29ddee4f77867a6fb725dfafc522e3c 100644 (file)
@@ -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");