com php-src: Use "fastcal" calling convention for internal PHP functions on x86: Zend/zend_API.h Zend/zend_compile.h
| From: | Dmitry Stogov | Date: | Mon, 11 Dec 2017 07:55:15 +0000 |
| Subject: | com php-src: Use "fastcal" calling convention for internal PHP functions on x86: Zend/zend_API.h Zend/zend_compile.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-100549@lists.php.net to get a copy of this message | ||
Commit: f3aca3c852df1dc169e73c01ef1d47927a51a57a
Author: Dmitry Stogov <dmitry@zend.com> Mon, 11 Dec 2017 10:55:15 +0300
Parents: bf9e2692c0d01db3df698df9e0f0057fa192b165
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f3aca3c852df1dc169e73c01ef1d47927a51a57a
Log:
Use "fastcal" calling convention for internal PHP functions on x86
Changed paths:
M Zend/zend_API.h
M Zend/zend_compile.h
Diff:
diff --git a/Zend/zend_API.h b/Zend/zend_API.h
index cc6a7c3..c05a527 100644
--- a/Zend/zend_API.h
+++ b/Zend/zend_API.h
@@ -63,7 +63,7 @@ typedef struct _zend_fcall_info_cache {
#define ZEND_FN(name) zif_##name
#define ZEND_MN(name) zim_##name
-#define ZEND_NAMED_FUNCTION(name) void name(INTERNAL_FUNCTION_PARAMETERS)
+#define ZEND_NAMED_FUNCTION(name) void ZEND_FASTCALL name(INTERNAL_FUNCTION_PARAMETERS)
#define ZEND_FUNCTION(name) ZEND_NAMED_FUNCTION(ZEND_FN(name))
#define ZEND_METHOD(classname, name) ZEND_NAMED_FUNCTION(ZEND_MN(classname##_##name))
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h
index 62fcdc9..a615cf6 100644
--- a/Zend/zend_compile.h
+++ b/Zend/zend_compile.h
@@ -408,7 +408,7 @@ struct _zend_op_array {
#define ZEND_RETURN_REFERENCE 1
/* zend_internal_function_handler */
-typedef void (*zif_handler)(INTERNAL_FUNCTION_PARAMETERS);
+typedef void ZEND_FASTCALL (*zif_handler)(INTERNAL_FUNCTION_PARAMETERS);
typedef struct _zend_internal_function {
/* Common elements */