summaryrefslogtreecommitdiff
path: root/tool/mk_call_iseq_optimized.rb
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-10-24 18:08:52 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-10-25 12:24:22 +0900
commit356e203a3acd4d3d20ba12f956fd22e17b6363e9 (patch)
tree78b4eccc00668da18debcb3e818146add31da10a /tool/mk_call_iseq_optimized.rb
parenta7ec88ad61eba8cda3f99805e6077cb515c0ad08 (diff)
more on struct rb_call_data
Replacing adjacent struct rb_call_info and struct rb_call_cache into a struct rb_call_data.
Diffstat (limited to 'tool/mk_call_iseq_optimized.rb')
-rw-r--r--tool/mk_call_iseq_optimized.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/tool/mk_call_iseq_optimized.rb b/tool/mk_call_iseq_optimized.rb
index 9fd84aa696..eba44531c2 100644
--- a/tool/mk_call_iseq_optimized.rb
+++ b/tool/mk_call_iseq_optimized.rb
@@ -21,10 +21,10 @@ P.each{|param|
L.each{|local|
puts <<EOS
static VALUE
-#{fname(param, local)}(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, const struct rb_call_info *ci, struct rb_call_cache *cc)
+#{fname(param, local)}(rb_execution_context_t *ec, rb_control_frame_t *cfp, struct rb_calling_info *calling, struct rb_call_data *cd)
{
RB_DEBUG_COUNTER_INC(ccf_iseq_fix);
- return vm_call_iseq_setup_normal(ec, cfp, calling, cc->me, 0, #{param}, #{local});
+ return vm_call_iseq_setup_normal(ec, cfp, calling, cd->cc.me, 0, #{param}, #{local});
}
EOS
@@ -61,7 +61,7 @@ vm_call_iseq_setup_func(const struct rb_call_info *ci, const int param_size, con
static inline vm_call_handler
-vm_call_iseq_setup_func(const struct rb_call_info *ci, struct rb_call_cache *cc)
+vm_call_iseq_setup_func(const struct rb_call_info *ci, const int param_size, const int local_size)
{
if (UNLIKELY(ci->flag & VM_CALL_TAILCALL)) {
return &vm_call_iseq_setup_tailcall_0start;