mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Use fastcall calling convention for objects and resources API
This commit is contained in:
@@ -49,15 +49,15 @@ typedef struct _zend_objects_store {
|
||||
|
||||
/* Global store handling functions */
|
||||
BEGIN_EXTERN_C()
|
||||
ZEND_API void zend_objects_store_init(zend_objects_store *objects, uint32_t init_size);
|
||||
ZEND_API void zend_objects_store_call_destructors(zend_objects_store *objects);
|
||||
ZEND_API void zend_objects_store_mark_destructed(zend_objects_store *objects);
|
||||
ZEND_API void zend_objects_store_free_object_storage(zend_objects_store *objects, zend_bool fast_shutdown);
|
||||
ZEND_API void zend_objects_store_destroy(zend_objects_store *objects);
|
||||
ZEND_API void ZEND_FASTCALL zend_objects_store_init(zend_objects_store *objects, uint32_t init_size);
|
||||
ZEND_API void ZEND_FASTCALL zend_objects_store_call_destructors(zend_objects_store *objects);
|
||||
ZEND_API void ZEND_FASTCALL zend_objects_store_mark_destructed(zend_objects_store *objects);
|
||||
ZEND_API void ZEND_FASTCALL zend_objects_store_free_object_storage(zend_objects_store *objects, zend_bool fast_shutdown);
|
||||
ZEND_API void ZEND_FASTCALL zend_objects_store_destroy(zend_objects_store *objects);
|
||||
|
||||
/* Store API functions */
|
||||
ZEND_API void zend_objects_store_put(zend_object *object);
|
||||
ZEND_API void zend_objects_store_del(zend_object *object);
|
||||
ZEND_API void ZEND_FASTCALL zend_objects_store_put(zend_object *object);
|
||||
ZEND_API void ZEND_FASTCALL zend_objects_store_del(zend_object *object);
|
||||
|
||||
/* Called when the ctor was terminated by an exception */
|
||||
static zend_always_inline void zend_object_store_ctor_failed(zend_object *obj)
|
||||
@@ -67,7 +67,7 @@ static zend_always_inline void zend_object_store_ctor_failed(zend_object *obj)
|
||||
|
||||
#define ZEND_OBJECTS_STORE_HANDLERS 0, zend_object_std_dtor, zend_objects_destroy_object, zend_objects_clone_obj
|
||||
|
||||
ZEND_API zend_object_handlers *zend_get_std_object_handlers(void);
|
||||
ZEND_API zend_object_handlers * ZEND_FASTCALL zend_get_std_object_handlers(void);
|
||||
END_EXTERN_C()
|
||||
|
||||
static zend_always_inline void zend_object_release(zend_object *obj)
|
||||
|
||||
Reference in New Issue
Block a user