Commit 6252300e authored by's avatar

Convert a couple more macros to inline functions

This caused a couple of .o files to change size. I had a look at one,
and it seems to be caused by the difference in size of these two
    49 8b 5d 08            mov    0x8(%r13),%rbx
    49 8b 5c 24 08         mov    0x8(%r12),%rbx
(with a few nops being added or removed later in the file, presumably
for alignment reasons).
parent 8413d838
......@@ -76,8 +76,13 @@
EXTERN_INLINE StgInfoTable *get_itbl(StgClosure *c);
EXTERN_INLINE StgInfoTable *get_itbl(StgClosure *c) {return INFO_PTR_TO_STRUCT(c->;}
#define get_ret_itbl(c) (RET_INFO_PTR_TO_STRUCT((c)->
#define get_fun_itbl(c) (FUN_INFO_PTR_TO_STRUCT((c)->
EXTERN_INLINE StgRetInfoTable *get_ret_itbl(StgClosure *c);
EXTERN_INLINE StgRetInfoTable *get_ret_itbl(StgClosure *c) {return RET_INFO_PTR_TO_STRUCT(c->;}
INLINE_HEADER StgFunInfoTable *get_fun_itbl(StgClosure *c);
INLINE_HEADER StgFunInfoTable *get_fun_itbl(StgClosure *c) {return FUN_INFO_PTR_TO_STRUCT(c->;}
#define get_thunk_itbl(c) (THUNK_INFO_PTR_TO_STRUCT((c)->
#define get_con_itbl(c) (CON_INFO_PTR_TO_STRUCT((c)->
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment