Added the room for builtin inline prefix
This commit is contained in:
parent
5a665f6ce7
commit
fced98f464
@ -7294,7 +7294,8 @@ compile_call(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, co
|
|||||||
return COMPILE_NG;
|
return COMPILE_NG;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
char inline_func[DECIMAL_SIZE_OF_BITS(sizeof(int) * CHAR_BIT) + 1];
|
# define BUILTIN_INLINE_PREFIX "_bi"
|
||||||
|
char inline_func[DECIMAL_SIZE_OF_BITS(sizeof(int) * CHAR_BIT) + sizeof(BUILTIN_INLINE_PREFIX)];
|
||||||
bool cconst = false;
|
bool cconst = false;
|
||||||
retry:;
|
retry:;
|
||||||
const struct rb_builtin_function *bf = iseq_builtin_function_lookup(iseq, builtin_func);
|
const struct rb_builtin_function *bf = iseq_builtin_function_lookup(iseq, builtin_func);
|
||||||
@ -7329,7 +7330,7 @@ compile_call(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, co
|
|||||||
rb_bug("builtin inline function index overflow:%s", builtin_func);
|
rb_bug("builtin inline function index overflow:%s", builtin_func);
|
||||||
}
|
}
|
||||||
int inline_index = GET_VM()->builtin_inline_index++;
|
int inline_index = GET_VM()->builtin_inline_index++;
|
||||||
snprintf(inline_func, sizeof(inline_func), "_bi%d", inline_index);
|
snprintf(inline_func, sizeof(inline_func), BUILTIN_INLINE_PREFIX "%d", inline_index);
|
||||||
builtin_func = inline_func;
|
builtin_func = inline_func;
|
||||||
args_node = NULL;
|
args_node = NULL;
|
||||||
goto retry;
|
goto retry;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user