tuning trial: newobj with current ec

Passing current ec can improve performance of newobj. This patch
tries it for Array and String literals ([] and '').
This commit is contained in:
Koichi Sasada 2020-12-06 15:41:21 +09:00
parent 59ddb88da6
commit 344ec26a99
Notes: git 2020-12-07 08:29:07 +09:00
5 changed files with 89 additions and 4 deletions

View file

@ -48,6 +48,9 @@ VALUE rb_ary_tmp_new_from_values(VALUE, long, const VALUE *);
VALUE rb_check_to_array(VALUE ary);
VALUE rb_ary_behead(VALUE, long);
VALUE rb_ary_aref1(VALUE ary, VALUE i);
struct rb_execution_context_struct;
VALUE rb_ec_ary_new_from_values(struct rb_execution_context_struct *ec, long n, const VALUE *elts);
MJIT_SYMBOL_EXPORT_END
static inline VALUE